>Split the myisam table into seperate tables. We will
>call each table a bucket.
>
>Create a MERGE table of all of them. For selecting the
>data.
>
>When inserting, use a hash function on your primary
>key values to determine which bucket to insert into.
>If you almost always select by primary key, then you
>can optimize your select queries to only look at the
>correct bucket as well, and to only use the merge
>table when you aren't selecting by primary key.
>
>This will speed your inserts because instead of 258M
>rows to search through for each insert there are only
>8M if you use 32 buckets. The biggest benefit is that
>you could also insert in parallel using multiple mysql
>connections, because you could calculate the bucket as
>an additional column in your temporary table, then do
>the inserts for all the buckets the same time.
>
>
I hit duplicate hashes for unique records, not sure why, I think I used
aes_encrypt, how do you recomend creating a hash column via sql?
I already split the data into separate tables, and use a merge, it
really didnt speed things up that much
| Thread |
|---|
| • Mysql growing pains, 4 days to create index on one table! | matt ryan | 30 Jun |
| • Re: Mysql growing pains, 4 days to create index on one table! | Egor Egorov | 1 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | matt ryan | 14 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | Tim Brody | 15 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | matt ryan | 15 Jul |
| • RE: Mysql growing pains, 4 days to create index on one table! | Donny Simonton | 15 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | Tim Brody | 15 Jul |
| • RE: Mysql growing pains, 4 days to create index on one table! | Lopez David E-r9374c | 30 Jun |
| • Re: Mysql growing pains, 4 days to create index on one table! | matt ryan | 14 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | Udikarni | 1 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | matt ryan | 14 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | Justin Swanhart | 14 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | matt ryan | 15 Jul |
| • Re[2]: Mysql growing pains, 4 days to create index on one table! | Pete McNeil | 15 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | matt ryan | 15 Jul |
| • Re[2]: Mysql growing pains, 4 days to create index on one table! | adburne | 15 Jul |
| • Re[3]: Mysql growing pains, 4 days to create index on one table! | Alejandro D. Burne | 15 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | matt ryan | 15 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | Justin Swanhart | 15 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | Justin Swanhart | 15 Jul |
| • RE: Mysql growing pains, 4 days to create index on one table! | Lachlan Mulcahy | 16 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | matt ryan | 21 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | Udi.S.Karni | 15 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | Justin Swanhart | 15 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | Udi.S.Karni | 15 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | matt ryan | 16 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | Udi.S.Karni | 16 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | matt ryan | 21 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | matt ryan | 16 Jul |
| • RE: Mysql growing pains, 4 days to create index on one table! | Lopez David E-r9374c | 16 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | matt ryan | 21 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | gerald_clark | 21 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | Justin Swanhart | 21 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | matt ryan | 21 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | Justin Swanhart | 21 Jul |
| • Re: Mysql growing pains, 4 days to create index on one table! | matt ryan | 22 Jul |