Repository navigation
Server Implementers - Feature Request "Latest Datastream Observation Cache"? #14
justinschembri
started this conversation in
General
Replies: 2 comments 7 replies
|
The performance difference between servers can have many reasons. For this query the indices on the Observations table are the most important. Also, fast disks. The airquality service runs on a node with a local SSD. But, your phenomenonTime cache already exists! The Datastream class has phenomenonTime, resultTime and observedArea for exactly these queries. You can also filter on them, for example all Datastreams that have not been updated in the last 12 hours: Note that |
5 replies
|
Also, manually using skip for pagination is very inefficient, especially for large result sets. At least for FROST its better to use the server-provided nextLink. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello Topic #1 folk, @hylkevds @Kattouw -
Something of a feature request that is not strictly speaking part of STA.
Is there a performative solution where an additional table or an in memory cache storing the last phenomenon time per datastream? Useful for health-checking, although I guess that might mean an extra write per datastream.
My health-checking now looks like this query:
I run three queries in parallel until I exhaust the pages.
The infrastructure where the (Fraunhofer) FROST server is hosted must really affect performance because the timing is:
~ 13.5s for https://airquality-frost.k8s.ilt-dmz.iosb.fraunhofer.de/FROST-Server/v1.1 with ~5600 Things
~ 35.91s for https://multicare.bk.tudelft.nl/FROST-Server with 24 Things! Note: same credentials as the Brabantse server.
All reactions