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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:23:42+00:00 2026-05-29T08:23:42+00:00

I have problem I have never met before. I was clearing yesterday clients db

  • 0

I have problem I have never met before.
I was clearing yesterday clients db and table with stats of visits had 15GB of data, so I decided to delete all rows older than 1 Feb, because we have all that data stored in daily stats and there’s no need to keep those old single stats.

I tried to run DELETE FROM sv WHERE datetime < ? (index on datetime) and DELETE FROM sv WHERE id < ? (primary index on id), but both queries where too slow, took more than 15 mins. So I have just aborted those queries by Ctrl+C.

Then I thought better idea would be copying table structure and February rows and remove old table, but today I found out that mysql process on server is running up to 50% cpu usage with normal traffic on our site.

After moving sv table out of database folder (myIsam table) usage is still up to 50%.

First I thought that table must have been corrupted, but phpmyadmin does not show it marked as crashed.

How I can debug this one? What have happened there?

  • 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-29T08:23:43+00:00Added an answer on May 29, 2026 at 8:23 am

    Your system is likely re-indexing the entire table as a result of the killed query. If it was in a transaction in INNODB, you are also having the system rebuild the table then recreating the index.

    I would look at iostat and look for disk contention.

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

Sidebar

Related Questions

Ok I have this problem that I've never had before, it's really bugging me.
I'm facing a problem I have never had before. The other day when I
I have run into this problem before but never quite solved it. I have
Never ran into this problem with jQuery before. I have the following: $(document).ready(function() {
For years, on 32-bit systems I have never had a problem. Why can't I
I have never used enums before i have a problem while creating enums i
I have a pretty strange HTML problem I have never experienced before. I have
So I have this problem, which has never happened to me before. I am
On Windows I have a problem I never encountered on Unix. That is how
Never thought I'd have this problem :) The following snippet of code works in

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.