Hi Jody,
is there anything planned in the future for such a notion where a query
timeout is introduced? Another question I have is, if such a concept is
introduced, would the geotools community accept change sets?
Thanks,
Hasan
On Mon, Jun 29, 2015 at 10:53 AM, Jody Garnett <jody.garn...@gmail.com>
wrote:
> A few of the datastore, such as WFS, do support a timeout being supplied
> as one of the connection parameters.
>
> There is no general solution since each backend format is different.You
> can always do the query in a seperate thread, or use a watchdog thread or
> time throw you an interrupt.
>
>
>
> --
> Jody Garnett
>
> On 18 June 2015 at 08:55, Hasan Riaz <hasa...@gmail.com> wrote:
>
>> 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
>> GeoTools-GT2-Users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>
>>
>
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users