Re: Very Large Non-Dynamic Table for Lookups
Posted by:
Rick James
Date: October 24, 2009 10:50PM
At 1B rows, plan on about 100GB of disk space needed. Because of the way BTrees work in InnoDB, and assuming innodb_buffer_pool_size is big enough, plan on 1 disk hit per random fetch.
innodb_buffer_pool_size should be about 70% of available RAM.
The equivalent MyISAM table would take about 35GB; about evenly split between data and index. Even so, it might be slower because it would probably be 2 disk hits most of the time. key_buffer_size is the critical tunable for MyISAM.
Rule of thumb: 100 disk hits per second. Are you OK with 100 lookups per second?
I don't think there have been 1B SSNs in the history of the US. In spite of the numbers being 9 digits, not all combinations are allocated. Perhaps your field includes ids from other countries?
You have the userid within a company, but not the id of the company??
Subject
Views
Written By
Posted
3879
October 23, 2009 05:46PM
1910
October 24, 2009 08:02PM
1978
October 24, 2009 08:55PM
Re: Very Large Non-Dynamic Table for Lookups
2077
October 24, 2009 10:50PM
1984
October 25, 2009 11:23AM
2092
October 25, 2009 12:32PM
2130
October 26, 2009 12:19PM
2206
October 26, 2009 08:03PM
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.