The first fuzzy query after Fuseki started is particularly slow #1418
-
Hi, The first fuzzy query after Fuseki started is particularly slow, taking about 17 seconds. But the next query (the same SPARQL) only takes 2 seconds. I changed 'w' to 'wa' or 'water', queries are still faster. And I've found that happens over time. What's the reason? Can it be preloaded to speed up each fuzzy query? Here's my SPARQL:
Here's some information that may help :
Best Regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
There are two effects here. Caches of on-disk data start empty and fill up on demand when using TDB1 or TDB2. This is both in the operating system and and node table cache. The effect is less pronounced when data is stored on a local SSD. The more the access latency the slower the first usage will be. The JDK will be compiling and optimizing bytecode on-the-fly (the JIT compiler). To preload, send some queries to the server and startup. |
Beta Was this translation helpful? Give feedback.
-
Thanks. After listening to your reply, I adopted the plan: Send fuzzy query to fuseki at set intervals. |
Beta Was this translation helpful? Give feedback.
There are two effects here.
Caches of on-disk data start empty and fill up on demand when using TDB1 or TDB2. This is both in the operating system and and node table cache. The effect is less pronounced when data is stored on a local SSD. The more the access latency the slower the first usage will be.
The JDK will be compiling and optimizing bytecode on-the-fly (the JIT compiler).
To preload, send some queries to the server and startup.