Opening TOraTable takes a long time if IndexFieldNames<>''

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
lior
Posts: 36
Joined: Mon 01 Aug 2011 07:11

Opening TOraTable takes a long time if IndexFieldNames<>''

Post by lior » Thu 25 Aug 2011 08:15

If IndexFieldNames is empty TOraTable opens immediatly.
Opening TOraTable takes a long time if IndexFieldNames is not empty
even if that field is the primary index.
If I set IndexFieldNames of a detail TOraTable to that of the master table
and then try to open it,after a couple of minuets I get an exception class EOutOfMemory with message 'Out of Memory'.
LocalMasterDetail property is false.
Master table record number: 243963
Detail record namber: 1161713

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

Post by AlexP » Tue 30 Aug 2011 09:17

Hello,

This behaviour is connected with the fact that local sorting is used when setting the IndexFieldNames property, i.e. ALL data is fetched to DataSet and after that it is sorted. If you have a lot of data, you should use server sorting – instead of defining the IndexFieldNames property you should define the OrderFields property value.

Post Reply