Query Timeout

3 views
Skip to first unread message

rasha fawzy

unread,
May 19, 2015, 9:07:47 AM5/19/15
to sta...@clarkparsia.com
Hi,
how can I increase the query timeout ?

Kendall Clark

unread,
May 19, 2015, 9:11:41 AM5/19/15
to stardog
Did you try searching for "query timeout" at http://docs.stardog.com/ ?

Cheers,
Kendall

On Tue, May 19, 2015 at 9:07 AM, rasha fawzy <rashaf...@gmail.com> wrote:
Hi,
how can I increase the query timeout ?

--
-- --
You received this message because you are subscribed to the C&P "Stardog" group.
To post to this group, send email to sta...@clarkparsia.com
To unsubscribe from this group, send email to
stardog+u...@clarkparsia.com
For more options, visit this group at
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en

rasha fawzy

unread,
May 20, 2015, 9:25:25 AM5/20/15
to sta...@clarkparsia.com

Hi,


I saw in the docs that query.timeout "is a positive integer concated with a letter"

so i tried to define the query.timeout like this " Duration timeout = 15m;" but it doesn't work


I want to know how can i define the duration ?


 Duration timeout = 15m; 

aConfig= aAdminConnection.disk("......").set(DatabaseOptions.QUERY_TIMEOUT, timeout).create();

Kendall Clark

unread,
May 20, 2015, 9:37:55 AM5/20/15
to stardog


On Wed, May 20, 2015 at 9:25 AM, rasha fawzy <rashaf...@gmail.com> wrote:

Hi,


I saw in the docs that query.timeout "is a positive integer concated with a letter"

so i tried to define the query.timeout like this " Duration timeout = 15m;" but it doesn't work


​Right. Stardog is pretty advanced, but it still requires Java code that *compiles*.

It's unclear to us what it means to say "it doesn't work" when it doesn't even compile.

At any rate, try something like Duration.valueOf(String) or even new Duration(TimeUnit.MINUTES.toMillis(15)), i.e., valid Java code.

Or set it in the database properties file like "query,timeout=15m".

Cheers,
Kendall​
 
Reply all
Reply to author
Forward
0 new messages