Strokovnjak
Member
If I create an object of type TOracleDataset in delphi code - without drag and drop from component palette, it ignores the property ReadBuffer which I set to 1000.
My sample code:
TestDataSet := TOracleDataSet.Create(self);
TestDataSet.Session := self.OracleSession;
TestDataSet.SQL.Add('SELECT ID FROM EMPLOYEES');
TestDataSet.ReadBuffer := 1000;
TestDataSet.Open;
In SQL Monitor I see that only 25 records are fetch every time instead of 1000.
If I drag and drop OracleDataSet component from component palette it works OK (fetches 1000 rows without problems)
Both of the datasets uses the same TOracleSession.
What am I doing wrong?
My sample code:
TestDataSet := TOracleDataSet.Create(self);
TestDataSet.Session := self.OracleSession;
TestDataSet.SQL.Add('SELECT ID FROM EMPLOYEES');
TestDataSet.ReadBuffer := 1000;
TestDataSet.Open;
In SQL Monitor I see that only 25 records are fetch every time instead of 1000.
If I drag and drop OracleDataSet component from component palette it works OK (fetches 1000 rows without problems)
Both of the datasets uses the same TOracleSession.
What am I doing wrong?