Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 683329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:41:42+00:00 2026-05-14T01:41:42+00:00

Recently I was going through a blog and noticed some points about using PDO

  • 0

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 :

  1. Native prepared statements cannot take advantage of the query cache, resulting in lower performance.

  2. Native prepared statements cannot execute certains types of queries, like “SHOW TABLES”

  3. Native prepared statements don’t correctly communicate column lengths for certain other “SHOW” queries, resulting in garbled results.

  4. 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.

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T01:41:43+00:00Added an answer on May 14, 2026 at 1:41 am

    Well

    • you are right for the first point
    • The SHOW and SHOW TABLES are commands not commonly used in most use cases
    • Iam using prepared statemends in combination with stored procedures and have not yet experienced such problems.

    You may use the following command to enable query caching:

    $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
    

    This command is available from PHP 5.1.3 on only.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been going through a Haskell tutorial recently and noticed this behaviour when trying
I have recently been going through some of our windows python 2.4 code and
I recently started picking up vi , going through some tutorials and trying to
I was recently going through some code and considering whether I need to be
I was going through some of the code for Dolphin CMS recently (a craptastic
I recently learned scala and about to start working/learning Lift framework. Going through the
I'm relatively new to cross-platform mobile development, and recently have been going through some
I recently was given some code in c# ASP.NET and I was going through
I've been learning more about Python recently, and as I was going through the
Recently, I have been going through search trees and I encountered red-black trees, the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.