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
Recurrent error with 'sensor_history.get' MQ request #542
Comments
The errors occur mostly with the query on the month and the year |
Hi |
thank you, I will test these improvements: ALTER TABLE core_sensor_history ADD INDEX (sensor_id, date); I deleted several devices and manually injected their data. This may be a cause of the issue. |
Does this solve your issue? |
No, still have this error. What I modified:
for information, if I use REST for the same requests in my plugin, I have no problem |
hmm, this is as expected for these commands rest is going directly to the database, so there is no MQ in the background, so its normal that you don't see this in a rest request. To be honest i don't think we can really fix this, its sql thats to slow to return the data. |
In my plugin flowmeter, I use 'sensor_history.get' MQ request to calculate sum per interval every 5mn
I have a recurent error with MQ in core_admin.log
my call in plugin is like this:
Same error with avg selector.
core_admin.log:
In the plugin there are 3 devices * 4 call of this request. I catch this error in the plugin log.
Here are the errors reported from midnight to 4h20:
this error crashes the other MQ requests if at the same time
I could not find the reason
The text was updated successfully, but these errors were encountered: