MySQL Forums
Forum List  »  InnoDB

Re: random-access I/O
Posted by: Rick James
Date: February 03, 2012 01:41AM

> I have read several articles that mention that by compressing the tables you increase the insertion time.
Can you give me some URLs? I would like to argue with them. The cost in CPU time is usually cheaper than saved I/O time.

I'm still puzzled by this:
> PRIMARY KEY (`id`)
Did you mean id_document ??

Assuming that, then...
* 1000 id_document values in the IN list.
* 100 disk hits per second (Rule of Thumb for ordinary disks)
* Data is so big, that caching is not very effective (therefore, most fetches will need to hit the disk)
* BLOBs are stored separately (doubling the disk hits)

That adds up to about 20 seconds for the SELECT. This is close enough to your observed 40 seconds for me to belive that I have analyzed it correctly.

Oops, if you are not touching the blobs, the last bullet item is irrelevant. Hmmm... down to 10 sec.

> CPU usage is very low
Another clue that I/O is the problem.

> HD is not used at all
That is puzzling. Please explain how you arrived at that?

> 'innodb_buffer_pool_size', '1074790400'
That is good if your machine has at least 2GB of RAM. How much do you have available for MySQL?

What version of MySQL?

This somewhat confirms the other things you have said:
> 1, 'SIMPLE', 'documentlist', 'range', 'PRIMARY', 'PRIMARY', '4', '', 1000, 'Using where'

Both old and new tables are InnoDB?
What differences are there in the CREATE TABLEs?

Options: ReplyQuote


Subject
Views
Written By
Posted
3578
January 31, 2012 03:50AM
1082
January 31, 2012 08:25PM
1021
February 01, 2012 05:19AM
Re: random-access I/O
985
February 03, 2012 01:41AM
1243
February 03, 2012 02:39AM
1069
February 03, 2012 11:08PM
1014
February 04, 2012 08:54AM
1536
February 05, 2012 12:56PM
1030
February 08, 2012 07:22AM
1493
February 08, 2012 11:17PM
927
February 09, 2012 05:30AM
1015
February 09, 2012 01:48AM
846
February 09, 2012 01:58AM
1059
February 09, 2012 10:52AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.