MySQL Forums
Forum List  »  Stored Procedures

Re: Looping (cursor) in SP giving performance delays
Posted by: Peter Brawley
Date: March 04, 2020 08:16PM

Cursors process one row at a time, so they're s-l-o-w ... for a bit ofdiscussion on the matter see "A cursor if necessary, but not necessarily a cursor" at https://www.artfulsoftware.com/queries.php.

For the sort of problem you describe, a speedy query is usually possible. But guess isn't sufficient, instead let's see your MySQL version, the Show Create table results for each involved table, and the no. of rows in each table, so we can design an optimised solution.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Looping (cursor) in SP giving performance delays
468
March 04, 2020 08:16PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.