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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:02:24+00:00 2026-05-21T19:02:24+00:00

Fro clarity all other tables in the DB work as expected, and load ~2million

  • 0

Fro clarity all other tables in the DB work as expected, and load ~2million rows in a fraction of a second. The one table of just ~600 rows is taking 10+minutes to load in navcat.

I can’t think of any possible reason for this. There are just 4 columns. One of them is a large text field, but I’ve worked with large text fields before and they’ve never been this slow.

running explain select * from parser_queue I get

 id  setect type  table     type  possible keys  key  key len  ref  rows  extra
 1   SIMPLE    parser_queue  ALL  -              -    -        -    658   - 

The profile tells me that 453 seconds are spent ‘sending data’
I’ve also got this in the ‘Status’ tab. I don’t understand most of it, but these numbers are much higher than my other tables.

Bytes_received            31
Bytes_sent                32265951
Com_select                1
Created_tmp_files         16
Handler_read_rnd_next     659
Key_read_requests         9018487
Key_reads                 3928
Key_write_requests        310431
Key_writes                4290
Qcache_hits               135077
Qcache_inserts            14289
Qcache_lowmem_prunes      4133
Qcache_queries_in_cache   983
Questions                 1
Select_scan               1
Table_locks_immediate     31514

The data stored in the text field is about 12000 chars on average.
There is a primary, auto increment int id field, a tinyint status field, a text field, and a timestamp field with on update current timestamp.


OK I will try out both answers, but I can answer the questions quickly first:

Primary key on the ID field is the only key. This table is used for queuing, with ~50 records added/deleted per hour, but I only created it yesterday. Could it become corrupted in such a short time?

It is MyISAM


More work trying to isolate the problem:

repair table did nothing
optimize table did nothing
created a temp table. queries were about 50% slower on the temp table.

Deleted the table and rebuilt it. SELECT * takes 18 seconds with just 4 rows.

Here is the SQL I used to create the table:

CREATE TABLE IF NOT EXISTS `parser_queue` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `status` tinyint(4) NOT NULL DEFAULT '1',
  `data` text NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM;

Stranger still, everything seems fine on my local box. The slowness only happens on the dev site.

For clarity: there are more than 100 tables on the dev site and this is the only one that is funky.


OK I have disabled all cron jobs which use this table. SHOW PROCESSLIST does not reveal any locks on the table.

Changing the engine to InnoDB did not produce any significant improvement (86 seconds vs 94 for MyISAM)

any other ideas? . . .

Running SHOW PROCESSLIST during the query reveals it spends most of its time writing to net

  • 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-21T19:02:25+00:00Added an answer on May 21, 2026 at 7:02 pm

    If you suspect corruption somewhere, you can try either (or both) of the following:

    CREATE TABLE temp SELECT * FROM parser_queue;
    

    This will create a new table “identical” to the previous one, except it will be recreated. Alternatively (or maybe after you’ve made a copy), you can try:

    REPAIR TABLE parser_queue;
    

    You may also want to try optimizing the table; it might have gotten fragmented since you are using it as a queue.

    OPTIMIZE TABLE parser_queue;
    

    You can determine if the table is fragmented by running SHOW TABLE STATUS LIKE 'Data_Free' and see if this produces a high number.

    Update

    You say you are storing gzcompressed data in the TEXT columns. Try changing the TEXT column to BLOB instead, which is meant to handle binary data, such as compressed text.

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

Sidebar

Related Questions

I am create twitter_zombie rails fro fun. I just have one problem,when I click
i have one php file which process adding of record in Database fro array.
I am using edmx(Ado.net Entity Data Model) fro one of my project . I
Work on C#.In my application several time need to select\collect datafrom DB.Fro this task
All, I am trying create a 'to & fro' animation using jquery animate &
I have just started YII one week back. I have made a theme in
i want to clear all values in grid children example if one of my
I just created a HTTP server using this code fro the documentation: var sys
I have application with: one JTextField for user input, one JLabel fro showing busy
I'm looking into development standards fro JavaScript. I had previously used Doulgas Crockfords Javascript

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.