Sort and filter without full fetch

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
sinys
Posts: 186
Joined: Tue 21 Feb 2012 03:44

Sort and filter without full fetch

Post by sinys » Tue 02 Aug 2016 12:39

I wish sort and filter data in OraQuery dataset without full fetch. It is my old wish. You promised me think about it in the future. A lot of time has gone. Have you done something in this direction?

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

Re: Sort and filter without full fetch

Post by AlexP » Mon 08 Aug 2016 09:29

Hello,

For filtering and sorting, you need get all data from a corresponding field. You can use the SmartFetch mode, that retrieves data only from the needed fields when navigating through the dataset. To implement such behavior, you should set the OraQuery1.SmartFetch.Enabled property to True, and specify the fields to filter and sort by in the OraQuery1.SmartFetch.PrefetchedFields property.

sinys
Posts: 186
Joined: Tue 21 Feb 2012 03:44

Re: Sort and filter without full fetch

Post by sinys » Mon 08 Aug 2016 10:37

Why I can't sort and filter only existing data (without more fetches)?
I have 50 fetched record in my dataset (FetchAll = False) (query like: select * from big_table) and I wish sort and filter only fetched data. If I want fetch more i'll fetch one more set of records and call sort or filer procedure again or it can work automatically but the main I wish to have opportunity to sort and filter without full fetch or additional fetches.

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

Re: Sort and filter without full fetch

Post by AlexP » Mon 12 Sep 2016 08:49

Currently, architecture of our components doesn't allow to add such feature "easily". You can leave your suggestion on our uservoice page: https://devart.uservoice.com/forums/104 ... 909-common . If it gets enough user votes, we will implement it.

Post Reply