FetchRow Bug, New or Oldstuff?
Posted: 04.05.2010, 15:37
hi
ive tried some very simple tests with the latest build 802.
Engine= Mysql 5.1
Mysql Table = 400.000 records, sql= select (first 20 fields) from table
i looked around in the forum and i could only find old stuff from 2005 about fetchrow, so pushed or new
Example:
this needs over 15 seks to be done.
it looks like the query is getting all the records after setting active=true.
can that be?
ZQuery1 has no connection to any datasource or DB component.
AFTER That!
i tried setting a label like
shows that i recordcount is 400 after the start.
pressing control+end in a dbgrid also needs long time again.
greetings Karsten
ive tried some very simple tests with the latest build 802.
Engine= Mysql 5.1
Mysql Table = 400.000 records, sql= select (first 20 fields) from table
i looked around in the forum and i could only find old stuff from 2005 about fetchrow, so pushed or new
Example:
Code: Select all
var c:cardinal;
begin
c:=GetTickCount;
ZQuery1.FetchRow:=400;
ZQuery1.Active:=true;
c:=GetTickCount-c;
Memo3.Lines.Add('ZQuery: '+ IntToStr(c));
end;
it looks like the query is getting all the records after setting active=true.
can that be?
ZQuery1 has no connection to any datasource or DB component.
AFTER That!
i tried setting a label like
Code: Select all
Label1.Caption:=format('%d/%d',[ZQuery1.RecNo,ZQuery1.RecordCount]);
pressing control+end in a dbgrid also needs long time again.
greetings Karsten