Comments - Mysql stored procedure is slower 20 times than standard query

 
2 years, 10 months ago Daniel Black

Asking how to stop a query affecting so many rows sounds like the wrong question. An UPDATE should have a well defined amount of rows affected by the query. Do you really need to update so many rows to achieve your business function?

I cannot guess how a SP time would be different to a direct query. If you can construct a repeatable test case to show this please create a bug report. If the direct query is doing it faster, then why not just use that?

Without details I cannot answer other performance questions.

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.