![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
This is more an inner workings of mysql question. I have an innodb table with 1+ billion rows. I took a small subset of that data and put it into an idenitcal table structure in another DB. I wrote a query that returned me 400K rows of data in 17 seconds from the new table. The same query on the old table has been running for over an hour. Is it the fact that the indexes on my new table are so much smaller and the data is easier to retrieve? Or are my indexes on my old table hosed? Or is the original table itself hosed? Being that the 1B row table is the bread and butter of the operation and optimize table isnt a likely fix here. Any input is appreciated. Jim |
#3
| |||
| |||
|
|
This is more an inner workings of mysql question. I have an innodb table with 1+ billion rows. I took a small subset of that data and put it into an idenitcal table structure in another DB. I wrote a query that returned me 400K rows of data in 17 seconds from the new table. The same query on the old table has been running for over an hour. Is it the fact that the indexes on my new table are so much smaller and the data is easier to retrieve? Or are my indexes on my old table hosed? Or is the original table itself hosed? Being that the 1B row table is the bread and butter of the operation and optimize table isnt a likely fix here. |
![]() |
| Thread Tools | |
| Display Modes | |
| |