Print Thread
Out of memory issues with TOracleDataset.
#49828 11/28/14 09:12 AM
Joined: Jun 2005
Posts: 37
Norway
A
Arvid Offline OP
Member
OP Offline
Member
A
Joined: Jun 2005
Posts: 37
Norway
Hi,
du to the problem with TOracleDataset and "Out of memory" when the query fetch a lot of VARCHAR2(4000) fields. As I understand TOracleDataset allocated 4000 characters for every field even if there is only a few characters of actual data(?)

I have seen the suggestion to set the dataset Unidirectional, but that is not an option since we use Master/Detail and we then keep getting a (show)message like "Record 33 not accessible in Unidirectional mode".

Do you have any suggestion to get around the "out of memory" issue?

Re: Out of memory issues with TOracleDataset.
Arvid #49829 11/28/14 10:06 AM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
You can perhaps set TOracleDataSet.QueryAllRecords to False, so that the dataset will only fetch the records when they are needed.


Marco Kalter
Allround Automations
Re: Out of memory issues with TOracleDataset.
Marco Kalter #49856 12/05/14 10:37 AM
Joined: Jun 2005
Posts: 37
Norway
A
Arvid Offline OP
Member
OP Offline
Member
A
Joined: Jun 2005
Posts: 37
Norway
We do set QueryAllRecord to false. But as soon as the user start to move through the dataset the memory consumption builds up. And if the user choose to do an export to EXCEL we need to scroll through the dataset and memory consuption hits the roof.
Off course we only need 25-50 records in memory at any given time - so how do we free up the memory for the records we don't need? Is it possible?

Re: Out of memory issues with TOracleDataset.
Arvid #49862 12/08/14 10:38 AM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
Does a user really scroll through 10,000 or 100,000 records? It doesn't seem very useful. Usually a simple QBE implementation will help a user to quickly find the records he or she needs without any memory overhead.

To export to Excel you can use the UniDirectional option.


Marco Kalter
Allround Automations
Re: Out of memory issues with TOracleDataset.
Marco Kalter #49903 12/17/14 11:40 AM
Joined: Jun 2005
Posts: 37
Norway
A
Arvid Offline OP
Member
OP Offline
Member
A
Joined: Jun 2005
Posts: 37
Norway
Hi, sorry for late answer - but I don't get notifications when you reply...

As I worte we have a implementation using master/detail - we do need this. No way around.

A customer can have 100/1000/10000 (seldom 100000 - but still possible) (contracts/invoices/etc). The user rarley scroll through 10.000 or 100.000 but as I wrote in my first post we can not scroll at all when using undirectional dataset. Or is there somehting we have misunderstood?

How do we user master/detail with undirection dataset?


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.039s Queries: 14 (0.011s) Memory: 2.5165 MB (Peak: 3.0421 MB) Data Comp: Off Server Time: 2024-05-19 03:01:23 UTC
Valid HTML 5 and Valid CSS