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

  • Home
  • SEARCH
  • 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 880325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:04:45+00:00 2026-05-15T12:04:45+00:00

I’m currently using mysql w/ PHP because that’s what I learned and haven’t ever

  • 0

I’m currently using mysql w/ PHP because that’s what I learned and haven’t ever had to use anything else. In my current project, I have a database w/ 10 million rows and about 10 columns and have found it to be very slow when I do complex calls, both in a local (windows) environment as well as production (linux) environment. Both servers have over 10GB of ram. I’ve already got Zend AMF installed and so all data transfer is binary.

I am self taught and have never had anyone teach me the ins-and-outs of efficient dbm. My first thought would be to break the DB into chunks and then change all my php code..seems like a lot of hassle and subject to error in the php code…is there a better way I am not aware of?

My UI is flash-based and I am willing to change the middleware if it means a significant increase in speed. At this point I really only know PHP as a middleware.

I don’t want to learn another db at this point and figure that there has to be some tricks of the trade to optimizing my performance but wanted to get some ideas before I hacked away at my DB.

fyi: the database is read only from a user’s standpoint. users are NOT entering any new data into the database. Also, of the 10 million rows in the database, there’s only about 200,000 that are heavily used. (I don’t know WHICH 200K rows are heavily used as recording this info would probably slow down my db even more).

Each call is something like:

SELECT   name, id, address 
FROM     table 
WHERE    date_added=? 
LIMIT    ?,? 
ORDER BY no_children ASC

… and various other “select” statements.

  • 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-15T12:04:46+00:00Added an answer on May 15, 2026 at 12:04 pm

    Do you have an index on the date_added field? If not, create one, and try again:

    CREATE INDEX ix_date_added on table (date_added);
    

    You may also be interested in checking out the following article from the MySQL Reference Manual:

    • How MySQL Uses Indexes

    You should also try to use EXPLAIN in front of your SELECT statements to see if the queries will use any of your indexes. This is often the first step towards proper troubleshooting of performance problems.

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

Sidebar

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.