MySQL Forums
Forum List  »  Perl

Re: How to use Query Cache with Perl DBI
Posted by: Bill Karwin
Date: September 01, 2006 11:11AM

Right, listen to David, you need to enable the query cache. It's disabled by default. See docs at http://dev.mysql.com/doc/refman/5.0/en/query-cache-configuration.html

Also note that the query cache will not cache prepared statements. That is, the following SQL statement can never be cached, because the result set is variable depending on the value of the parameter:

SELECT * FROM mytable WHERE column1 = ?

See other rules for what types of queries can/cannot be cached here: http://dev.mysql.com/doc/refman/5.0/en/query-cache-how.html

Regards,
Bill K.

Options: ReplyQuote


Subject
Written By
Posted
September 01, 2006 10:20AM
Re: How to use Query Cache with Perl DBI
September 01, 2006 11:11AM


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.