Hello, I am using a JDBCDatastore with a postgres database. In order to fetch the geospatial data from the database via the following code:
SimpleFeatureSource featureSource = dataStore.getFeatureSource(name); where the dataStore is configured using the documentation( http://docs.geotools.org/stable/userguide/library/jdbc/datastore.html) and the name is a specific table name or view Thereafter, I run a query against the given featureSource via the following code: SimpleFeatureCollection collection = featureSource.getFeatures(query); SimpleFeatureIterator iterator = collection.features(); This works fairly well under normal circumstances. In non performant queries though, the queries take a long time. My question is, is there a way to time out a query if the execution time has passed a certain time in the database? Thanks, Hasan
------------------------------------------------------------------------------
_______________________________________________ GeoTools-GT2-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
