max_statement_time per Query #49317
Unanswered
NiroDeveloper
asked this question in
Ideas
Replies: 3 comments 4 replies
-
I had just released a package that can provide max statement time per query. |
Beta Was this translation helpful? Give feedback.
0 replies
-
There is a way of handling it also via Eloquent without core changes but we did not disclose it publicly in laravel-crud-wizard-free. |
Beta Was this translation helpful? Give feedback.
0 replies
-
The laravel-timeout doesn't change the Laravel core libraries. It just inject the timeout method using a macro. |
Beta Was this translation helpful? Give feedback.
4 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.
-
I think there is no way at the moment to set max_statement_time per query.
(Except using raw SQL statements)
https://mariadb.com/kb/en/aborting-statements/
My current use case for this:
I count all rows of my database tables for Prometheus metrics, my tables are very huge and under high load the count query needs very long. (I think because of gap locking or something like that)
If the query on the big table would be canceled after some seconds, it could still query the other tables ... now the endpoint just times out.
Beta Was this translation helpful? Give feedback.
All reactions