Enlarge FetchRows Maximum limit

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
easyblue
Posts: 64
Joined: Wed 02 Feb 2005 13:02
Location: Shanghai

Enlarge FetchRows Maximum limit

Post by easyblue » Fri 03 Sep 2010 06:00

Hello

Current FetchRows value can not exceed 10000.

Is it possible to enlarge this value?

My case is that server is strong enough, network is fast enough, and database is big enough, user is many enough.

Many user is connected at the same time, although server is very strong, I prefer to fetch as many data as possible, and the limitation is my local client processing capability not the remote server.

Is it possible to break this limitation on FetchRows?

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 03 Sep 2010 07:45

To solve the problem set the FetchAll property to True to fetch all records on table opening.

easyblue
Posts: 64
Joined: Wed 02 Feb 2005 13:02
Location: Shanghai

Post by easyblue » Fri 03 Sep 2010 13:02

Hello

Set FetchAll is not feasible.

The server is a very powerful giant. Database is big enough that have over millions of records. Set FetchAll to True will definitely crash my client.

one record is of size 4k, by current FetchRows limit, I can fetch 40M per fetch. But since the client machine have 4G RAM, I would like to fetch as much as possible data by one fetch for very complicated calculation at client side.

Is it possible to cancel this hard limit? Or at least enlarge it by 10 times bigger, since now the memory is quite cheap.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Mon 06 Sep 2010 08:13

Ok, we will remove this limitation in the next MyDAC build.

Post Reply