query_datasource_plus_xyz runs forever sometimes #11291
-
Hello! I'm having this weird issue that only seems to be affecting this page of my Budibase site on my Raspberry Pi devices, tested on Chrome and Firefox, on multiple Raspberry Pis. Sometimes the page loads fine in under a second. But most often, the query_datasource_plus_xyz request will keep getting run over and over. It always retrieves the response data successfully, so it's not like it's failing. The solution is to keep refreshing the entire page until it decides to load instantly. If it doesn't load quickly, it seems to be a lost cause already. I wish I had more information to give, but I have no idea what could be causing this. The data sources on the top of the page always load instantly, and there are no nested data providers in the area that has the forever-spinning wheel GIF. Just a simple DataSource + Table combo. This page loads instantly on Chrome on Windows, on my phone, and everywhere else I've tried. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hey @R2bEEaton,
|
Beta Was this translation helpful? Give feedback.
Hey @R2bEEaton,
Firstly, thank you very much for your exports. They were very helpful!
I got one of the engineers to have a look at this. The reason it was constantly loading/refreshing was due to the
{{ now }}
binding (Its not a static date, thus constantly changing/causes the queries to constantly reload). It caused the datasources to become constantly invalidated and thus kept triggering the refreshes to try and fix it. The fix here is to input a static date, you could use{{ now }}
to output the current date/time to state then pass that in as the bindable value.I hope this explanation helps and makes sense.