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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:37:26+00:00 2026-05-13T07:37:26+00:00

Recently I’ve been doing quite a big project with php + mysql. And now

  • 0

Recently I’ve been doing quite a big project with php + mysql. And now I’m concerned about my mysql. What should I do to make my mysql as optimal as possible? Tell everything you know, I’ll be really very grateful.

Second question, I use one mysql query per page load which takes information from mysql. It’s quite a big query, because I take information from a few tables with a join. Maybe I should do something else?

Thank you.

  • 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-13T07:37:27+00:00Added an answer on May 13, 2026 at 7:37 am

    Some top tips from MySQL Performance tips forge

    Specific Query Performance:

    1. Use EXPLAIN to profile the query
      execution plan
    2. Use Slow Query Log (always have it
      on!)
    3. Don’t use DISTINCT when you have or
      could use GROUP BY Insert
      performance
    4. Batch INSERT and REPLACE
    5. Use LOAD DATA instead of INSERT
    6. LIMIT m,n may not be as fast as it
      sounds
    7. Don’t use ORDER BY RAND() if you
      have > ~2K records
    8. Use SQL_NO_CACHE when you are
      SELECTing frequently updated data or
      large sets of data
    9. Avoid wildcards at the start of LIKE
      queries
    10. Avoid correlated subqueries and in
      select and where clause (try to
      avoid in)

    Scaling Performance Tips:

    1. Use benchmarking
    2. isolate workloads don’t let administrative work interfere with customer performance. (ie backups)
    3. Debugging sucks, testing rocks!
    4. As your data grows, indexing may change (cardinality and selectivity change). Structuring may want to change. Make your schema as modular as your code. Make your code able to scale. Plan and embrace change, and get developers to do the same.

    Network Performance Tips:

    1. Minimize traffic by fetching only what you need.
      1. Paging/chunked data retrieval to limit
      2. Don’t use SELECT *
      3. Be wary of lots of small quick queries if a longer query can be more efficient
    2. Use multi_query if appropriate to reduce round-trips
    3. Use stored procedures to avoid bandwidth wastage

    OS Performance Tips:

    1. Use proper data partitions
      1. For Cluster. Start thinking about Cluster before you need them
    2. Keep the database host as clean as possible. Do you really need a windowing system on that server?
    3. Utilize the strengths of the OS
    4. pare down cron scripts
    5. create a test environment
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 365k
  • Answers 365k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Exceptions in Objective-C are quite a contentious issue, even Apple… May 14, 2026 at 3:50 pm
  • Editorial Team
    Editorial Team added an answer You could use a token bucket ( http://en.wikipedia.org/wiki/Token_bucket) May 14, 2026 at 3:50 pm
  • Editorial Team
    Editorial Team added an answer The proper way to set the width and height of… May 14, 2026 at 3:50 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.