Recently I was going through a blog and noticed some points about using PDO in mysql and it changed my view about the PDO.
The points are :
-
Native prepared statements cannot take advantage of the query cache, resulting in lower performance.
-
Native prepared statements cannot execute certains types of queries, like “SHOW TABLES”
-
Native prepared statements don’t correctly communicate column lengths for certain other “SHOW” queries, resulting in garbled results.
-
Calling stored procedures multiple times using native prepared statements causes the connection to drop.
Can anyone comment on this please?
I wanted query cache in my web app. I am preparing to move my web app to make use of PDO after considering performance issues with my website.
Can anyone please suggest me?
Thanks in advance.
Well
You may use the following command to enable query caching:
This command is available from PHP 5.1.3 on only.