MySQL Forums
Forum List  »  Stored Procedures

Prepared Statement Poor Performance inside stored
Posted by: Flavio Tobias
Date: June 11, 2014 04:57AM

I have a procedure which build a query that execute a select and use the result to create a temporary table (create temporary table xyz as select....).
This query is executed as a prepared statement. The procedure takes about 2s to be executed, but when I run this query directly on the console, also creating the temporary table, it takes about 0.4s.

Is this normal?
Why this happens?
Is there someway to workaround this delay?

Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
Prepared Statement Poor Performance inside stored
1667
June 11, 2014 04:57AM


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.