mikeknox
Wed 25th Sep '02, 12:10pm
Hi
I'm working on a C program to load some data into a MySQL database - unfortunately I'm getting some incredibly slow results which I can't explain.
The table has two indexes
1) ip, mac_address
2) mac_address
Queries are updates/inserts/selects - normally on mac_address+ip (and a couple of other columns)
or on =mac_address and != ip
or on !=mac_address and = ip
Explain plans indicate that either index1 or index2 will be used.
However status shows incredibly high hander_read_rnd_next values - so I think I must be table scanning. How do I identify whats happening?
The machine is a Dual proc Compaq 360DLT with 72 GB and 2GB RAM. Using MySQL 3-23.51.
Stats are from a run of 20,000 records....
working on a table of approx 180,000
(In attachment)
Any help will be gratefully recieved......
I'm working on a C program to load some data into a MySQL database - unfortunately I'm getting some incredibly slow results which I can't explain.
The table has two indexes
1) ip, mac_address
2) mac_address
Queries are updates/inserts/selects - normally on mac_address+ip (and a couple of other columns)
or on =mac_address and != ip
or on !=mac_address and = ip
Explain plans indicate that either index1 or index2 will be used.
However status shows incredibly high hander_read_rnd_next values - so I think I must be table scanning. How do I identify whats happening?
The machine is a Dual proc Compaq 360DLT with 72 GB and 2GB RAM. Using MySQL 3-23.51.
Stats are from a run of 20,000 records....
working on a table of approx 180,000
(In attachment)
Any help will be gratefully recieved......