-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Initialization of API on MOSMIX slow? #412
Comments
Dear Guido, apparently I didn't apply caching to the stations method, which causes it to reload stations every time the request is setup. We are looking forward to replace the current caching method which is at some point causing trouble (#243) however as we are not there yet I will just apply a patch that caches the stations and that should pretty much fix the problem. We'll do another release later so that you can again run the app smoothly. |
Yeah I suspected it had something to do with the query of the station list. Would be interesting to know why is taking so long though. The list is just a TAB separated tex file on DWD, no? As far as I remember... |
You are right except for some lines like these TABLE St 99999 99991 gmos 99792 ecmgl 99791 gmegl However I simplified the method so that should speed it up even a bit more. |
So I just updated to wetterdienst 0.16.1 and I haven't updated in a while so I may miss something but...
To get mosmix data I have to know define the API every time, e.g.
This step takes 4 seconds on my PC, 14 seconds on my raspberry pi 4.
As I have to run this into a webapp every time that a new station is selected is kinda killing the whole execution timeout :)
Is there a reason why this is so slow? As the data is downloaded only later (when calling
df = stations.values.all().df
) why is this step taking so much time? I guess this is disk write speed bounded, which would explain the different performance on the raspberry.The text was updated successfully, but these errors were encountered: