clear Stardog query cache

7 views
Skip to first unread message

yrpa...@gmail.com

unread,
Sep 12, 2016, 2:48:05 AM9/12/16
to Stardog
Hello,

I am looking for simpler way to clear query cache of Stardog. Currently I have to restart Stardog server to clear cache. So is there any utility or API which comes with Stardog which we can use for clearing cache.

Thanks in advance,
Yogesh

Michael Grove

unread,
Sep 12, 2016, 1:52:20 PM9/12/16
to stardog
What exactly are you trying to accomplish? There is not a good reason
to drop the query cache.

Cheers,

Mike
> --
> -- --
> 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

John Verber

unread,
Sep 12, 2016, 4:22:46 PM9/12/16
to Stardog, yrpa...@gmail.com
(Sort of a side question)
Does the query cache make a marked improvement in query performance? 

Pavel Klinov

unread,
Sep 12, 2016, 4:50:06 PM9/12/16
to sta...@clarkparsia.com
The short answer is yes. The long answer: it depends on the query load. Also there's no single "query cache". There're multiple components which keep various pieces of data which may be re-used later for queries which use similar plans or access same (or co-located) data.

Some control over caching is possible via the "query.plan.reuse" server option [1].

Cheers,
Pavel


--
-- --
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

John Verber (home)

unread,
Sep 12, 2016, 4:52:29 PM9/12/16
to sta...@clarkparsia.com
Great thank you for the explanation.

---
You received this message because you are subscribed to the Google Groups "Stardog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stardog+unsubscribe@clarkparsia.com.



--

Regards,

John Verber




yrpa...@gmail.com

unread,
Sep 13, 2016, 1:31:55 AM9/13/16
to Stardog
I have some special requirement to check all queries performance with warm and cold cache. So to check query execution time with cold query I have to restart server to delete cache.

Pavel Klinov

unread,
Sep 13, 2016, 3:24:54 AM9/13/16
to sta...@clarkparsia.com
Restarting the server is the only reliable way to drop all cached data related to query evaluation. To disable the query plan cache (for all queries), you can use the "query.plan.reuse" server option.

Cheers,
Pavel

John Verber (home)

unread,
Sep 13, 2016, 4:33:23 AM9/13/16
to sta...@clarkparsia.com

Here's the link: http://docs.stardog.com/java/snarl/com/complexible/stardog/QueryPlanReuse.html

You can configure stardog enum constant cardinality to "Never" if necessary.

Regards,

John Verber


Marcel Karnstedt-Hulpus

unread,
Sep 13, 2016, 4:36:53 AM9/13/16
to sta...@clarkparsia.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Is it possible to increase the amount of memory used for caching,
maybe even for some specific components? Or is this possible only by
increasing the overall amount of memory provided to the JVM?


Thanks,
Marcel



On 13/09/16 10:33, John Verber (home) wrote:
> Here's the link:
> http://docs.stardog.com/java/snarl/com/complexible/stardog/QueryPlanReuse.html
>
> You can configure stardog enum constant cardinality to "Never" if
> necessary.
>
> Regards,
>
> John Verber
>
>
> On Sep 13, 2016 12:24 AM, "Pavel Klinov" <pa...@stardog.com
> sta...@clarkparsia.com <mailto:sta...@clarkparsia.com> To
> unsubscribe from this group, send email to
> stardog+u...@clarkparsia.com
> <mailto:stardog%2Bunsu...@clarkparsia.com> For more options,
> visit this group at
> http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en
> <http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en>
>
>
> -- -- -- 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 <mailto:sta...@clarkparsia.com> To
> unsubscribe from this group, send email to
> stardog+u...@clarkparsia.com
> <mailto:stardog%2Bunsu...@clarkparsia.com> For more options,
> <http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en>
> --- You received this message because you are subscribed to the
> Google Groups "Stardog" group. To unsubscribe from this group and
> stop receiving emails from it, send an email to
> stardog+u...@clarkparsia.com
> <mailto:stardog+u...@clarkparsia.com>.
>
> -- -- -- 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 ---
> You received this message because you are subscribed to the Google
> Groups "Stardog" group. To unsubscribe from this group and stop
> receiving emails from it, send an email to
> stardog+u...@clarkparsia.com
> <mailto:stardog+u...@clarkparsia.com>.

- --
Dr. Marcel Karnstedt-Hulpus
www.marcel.karnstedt.com

Senior Data Architect
IT & Production Corporate Markets / Databases
Springer Nature
www.springernature.com

tel +49-6221-4878868
mob +49-151-23125052
Tiergartenstrasse 17, 69121 Heidelberg, Germany

- ---
Springer Nature is a major new force in scientific, scholarly,
professional and educational publishing, created in May 2015 through
the combination of Nature Publishing Group, Palgrave Macmillan,
Macmillan Education and Springer Science+Business Media.
- ---
Branch of Springer-Verlag GmbH, Heidelberger Platz 3,
14197 Berlin, Germany
Registered Office: Berlin / Amtsgericht Berlin-Charlottenburg,
HRB 91881 B
Directors: Derk Haank, Martin Mos, Petrus W. J. Hendriks
- ---
- ---
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJX17qiAAoJELjmZAjIQprmY3IH/1hTwoRFDjCvcKcaaeDHDVmJ
niqvFehWpJ++AjovFiwbHzYZMjpEaNsjIGC1zqDXQ8pFEfmVN++aMNmZTm8ZhOGL
AVtgpXVSyD0ULpq8vlkK/XU/X5ZtSp50vhvcB2uSMpm+lz5FHERNW4I+6zSmj2gd
ddgoF9YvHInrVynWZxygwIi5GpHnTpvAqc/bZrXIgcnfU7N40jVCpZwOdKEuR6rn
aOEsR4nYPTeQRtd3VNoYyxWIuhYkCbofMLFIUet7xPOGQFNj+dh7v5pQABVHfuH7
j4bq2EMJKp92wzPQ2nwCY/GI0PiNqXcZRHlZH3YFr4ojGNFrb0j1Ztfcz3LV8HA=
=Np65
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages