0.8 secs to return 5,000 records - 8.0 seconds to return 10,000
Posted: Tue 09 Jan 2007 14:08
I've got a horse racing database programme written in C++ Builder 6 using MySQL 5.0 and I'm currently trialling MyDac 4.40.0.20. In part of the programme you can view all of a jockey's lifetime rides. The query for this extracts those records from the 'Runner' table (these are usually scattered through the table fairly evenly- there is also a secondary index on JockeyID to assist the query) and returns them along with some information from 7 or 8 lookup tables. If I run a "Warm up" procedure at the start of my application to "heat" up the system cache (consists of running "select * from x" for each table x in the database) then TMyQuery returns these records lightning fast most of the time but, it seems to me that if the number of records exceeds a certain amount the wait for the result set becomes disproportionally long (as described in the thread title).
I've no idea if this is a MyDAC problem, a MySQL problem or is associated with my system memory. If I run similar queries within the MySQL Query Browser the queries are all slower but I don't see the same disproportianality so, I'm hoping there's maybe some setting in MyDAC you could point me to that will speed things up.
I've no idea if this is a MyDAC problem, a MySQL problem or is associated with my system memory. If I run similar queries within the MySQL Query Browser the queries are all slower but I don't see the same disproportianality so, I'm hoping there's maybe some setting in MyDAC you could point me to that will speed things up.