Devart Forum Index

The time now is Thu 09 Sep 2010 04:06

Memory usage

 
Post new topic   Reply to topic    Devart Forum Index -> Universal Data Access Components
View previous topic :: View next topic  
Author Message
sandy771



Joined: 22 May 2007
Posts: 68

PostPosted: Thu 29 Jul 2010 08:13    Post subject: Memory usage Reply with quote

I have an application that works with very large databases, I use the UniDac component to connect an sqlite database (although this could change) to a various DevExpress components.

I am finding that some actions generate an out of memory error and I am trying to optimise my program. I wondered whether there is a list anywhere of which methods or properties increase the memory footprint of the UniDac, i.e. what methods should I avoid calling or what properties should I avoid setting.
Back to top
View user's profile Send private message
bork
Devart Team


Joined: 12 Mar 2010
Posts: 467

PostPosted: Mon 02 Aug 2010 11:13    Post subject: Reply with quote

Hello

If you don't need to show your data in DBGrid, then you can set the UniDirectional property to True and the FetchRows property will indicate how many records will be loaded to the memory at the same time. It allows not to load all large table to the memory. But this way has limitations: you can use the TUniQuery.Next method, but cannot use the TUniQuery.Previous method (and DBGrid because it uses the Previous method).

Also you should keep in mind that TUniQuery (or TUniTable) releases memory on the Close method calling. So after using large table that was loaded to the memory you should close dataset to release memory.

And if you use the DevExpress components, then you should tune them up to deny loading all records to the memory.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Devart Forum Index -> Universal Data Access Components All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum