Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to increase performance query? #181

Open
elma13 opened this issue Feb 18, 2021 · 1 comment
Open

How to increase performance query? #181

elma13 opened this issue Feb 18, 2021 · 1 comment

Comments

@elma13
Copy link

elma13 commented Feb 18, 2021

In the SamenMeten programm we use the sensorThings API to store and publish the sensor-data. I made some R-code to get data from the API (https://github.com/rivm-syso/samanapir ). I am not familiar with the expand-functionality, so I extract the data stepwise, first the thing, than de Datastream and then the Observations. This takes longer than I expect, for example this query last a couple of seconds: https://api-samenmeten.rivm.nl/v1.0/Datastreams(4769)/Observations?$filter=phenomenonTime+gt+%272020-10-10%27+and+phenomenonTime+lt+%272020-10-24%27&$orderby=phenomenonTime

Can someone help me to increase the performance? Is that something to do with the database or with the manner of questioning the API? Thanks in advance.

@bertt
Copy link
Contributor

bertt commented Feb 18, 2021

some pointers for debugging sql queries: https://github.com/gost/docs/blob/master/gost_debug_sql_queries.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants