UniTable: IndexFieldNames and fetchall=false

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
maddn
Posts: 13
Joined: Wed 21 Sep 2011 12:47

UniTable: IndexFieldNames and fetchall=false

Post by maddn » Tue 18 Oct 2011 11:53

I have a UniTable with a MySQL-Connection
fetchall=false
fetchrow=50

When I open the table with an Indexfield on IndexFieldNames then the Table opens with all the records instead of only 50. Is there anything else to do?

When I open the table without the Indexfield it works.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Tue 18 Oct 2011 14:45

Hello,

If you set the IndexFieldNames property, then we have to read all data from the table to sort it by the specified field afterwards. And as we get all records, the RecordCount property displays the actual number of records in the table correspondingly.
To sort everything on the server side, you can use the OrderFields property. In this case sorting will be performed on the server side and you will get the amount of records specified in the FetchRow property.

Post Reply