MyTable / fetchall

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
IraW

MyTable / fetchall

Post by IraW » Wed 01 Mar 2006 21:09

Does FetchAll do anything when changing the property in a MyTable? My response time is much faster when setting MyQuery fetchall = false. MyTable - fetchall = false seems to do nothing?

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Thu 02 Mar 2006 12:27

Before you call MyTable.Open when FetchAll=False, MyTable doesn't "know" about size of the table on the server and starts fetching records from the server. To define number of rows that will be transferred across the network in single step, you should set FetchRows option. Pay attention that in FetchAll=False mode an additional connection to the server is created. FetchAll=False mode also has some restriction. You can read about them in MyDAC help. We do not advise you using this mode needlessly.

Post Reply