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 1023157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:34:23+00:00 2026-05-16T11:34:23+00:00

I am writing a software that requires me to prepare statements and set the

  • 0

I am writing a software that requires me to prepare statements and set the values, execute the query and get results within a loop. This loop might have over 7,000 cycles. If I use simple statements rather than prepared statements, will the execution speed change greatly?

Here is the pseudo code

  1. Prepare Statements
  2. Get a list from somewhere
  3. Iterate through the list
  4. get the prepared statements and do some db querying and close the new resources like result sets.
  5. populate a map using the result and values from the initial list

Thanks.

  • 1 1 Answer
  • 0 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-16T11:34:24+00:00Added an answer on May 16, 2026 at 11:34 am

    Prepared statements are FASTER then non-prepared statements if you repeatedly use the same statement with multiple sets of data. I’m unaware of a situation where this is not true.

    Once you’ve prepared a statement, its sent to the DB server which then only has to accept the data each time you call it — it doesn’t have to reprocess the statement every time you bind new data.

    So the simple answer is:

    No. They don’t.

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

Sidebar

Related Questions

I'm writing software that requires the user to have php 5, but nothing else
I'm writing some software that requires storing items in a database, the items need
I'm writing some software that modifies a Windows Server's configuration (things like MS-DNS, IIS,
I'm writing a plug-in for a piece of software that takes a big collection
I'm writing HFT trading software. I'm trying to optimize it. I figured out that
A software is producing UTF-8 files, but writing content to the file that isn't
I'm writing bug tracking software in PHP, and today I saw this in another
If I was writing a piece of software that attempted to predict what word
I'm writing a piece of P2P software, which requires a direct connection to the
I am writing client software that initiates a HTTP request with a large blob

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.