[prev in list] [next in list] [prev in thread] [next in thread]
List: mysql-odbc
Subject: Slow select * with MyODBC
From: "Alain Charroux" <Alain.Charroux () kxen ! com>
Date: 2003-07-25 8:48:34
[Download RAW message or body]
We need to do a select on BIG table (1,000,000)
As I can see, by default MySQL browse all the table and put the resultset in client \
memory. The effect is that the memory usage dramatically increases and CPU is 100% \
for a LONG time BEFORE having the first row.
If found the magic switch -q (don't cache result) wich is working fine for the mysql \
frontal : no memory usage, reasonable CPU and the first line arrives immediately
When I apply the same switch to MyODBC driver (windows version) it is half working : \
the memory usage is OK meaning that the result set is not transferred in memory. But \
the CPU is still 100% for a long time before we have the first row coming !!! I have \
several other options with MyODBC , no impact. Pbp is that we must use MyODBC Any \
idea ? Is this a pbm with Windows version of MyODBC, of all versions.
Is there another magic switch somewhere ?
Is there some options to programatically apply on the ODBC Connection handle, or \
statement handle ?
Thx
Alain Charroux
---------------
KXEN tel: +33 (0)1 41 44 88 42
25 Quai de Gallieni fax: +33 (0)1 41 44 88 40
Suresnes - FRANCE
Un après-midi d'été
Le bateau et le rivage
sont plongés dans une longue conversation
On a summer afternoon
The ship and the shore
are immersed in a long conversation
Sôseki ?
--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=mysql-odbc@progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic