So I posted this! yesterday and got a perfect answer, which required running this code first: ALTER TABLE mytable AUTO_INCREMENT=10000001;
I ran it several times, but r
I believe the hardware is fine but you need to spare your resources a lot better.
Db structure optimization!
TEXT
!bigint unsigned
. Any signs or alpha must be parsed and converted.varchar([32-256])
.mediumint unsigned
.enum('Male','Female')
int unsigned
enum('Alaska',...)
enum('Albania',...)
When building a large index the fastest way is to create a new table and do INSERT INTO ... SELECT FROM ...
rather then ALTER TABLE ...
.
Changing the State and Country fields to enum will drastically reduce you indexes size.