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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:28:20+00:00 2026-06-14T02:28:20+00:00

I am running a query on a table that has over 5 million rows

  • 0

I am running a query on a table that has over 5 million rows and this query takes about 30 minutes to run. For obvious reasons this is unacceptable, and I have rewritten the query to perform in under 10 seconds. But my underlying problem is that the query is only using around 12.5% cpu and appears to not be using the full resources of the server. The server has 8 cores and only appears to be using 1 when running the query 100%/8 cores = 12.5% CPU per core. The database uses the MyISAM engine if that matters.

I understand that in most circumstances you don’t want your server bogged down by 1 query, but in this case it is acceptable (the query is running on a testing server that is not accessible to the real world so traffic and other running services are not a problem).

Long story short, Is it possible to give a single query access to more than 1 CPU or because of MySQL architecture is it impossible to thread(at the CPU level) a single query? I guess there is also a third option that it is just a coincidence that the query is only using 12.5 cpu and MySQL can use multiple cores per query.

  • 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-06-14T02:28:21+00:00Added an answer on June 14, 2026 at 2:28 am

    “Currently one SQL statement runs from start to end in the same
    physical thread.”

    http://lists.mysql.com/internals/37329

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

Sidebar

Related Questions

I've had a query that has been running fine for about 2 years. The
Ok, here's a query that I am running right now on a table that
I got this error running a query that goes against 2 tables with combined
I am running this query which selects a few fields from one table and
i am wondering is that possible (best practice) to run two long running query
Running this query takes a long time: SELECT host,ip FROM arecords WHERE ip IN
I had a table test that has 25000 rows in Oracle 11g. I had
I've got a mysql table that has a running total: +---------------------+--------+ | Timestamp |
I have a SQL query that takes a very long time to run on
I'm running a query from SQL Server Management Studio 2005 that has an HTML

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.