How to properly dispose a BO?


Author
Message
Edhy Rijo
E
StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
I have a process that will load a couple of million records in BO to do a duplicate record search. My process will import thousands (360K+) of records and then I need to make sure those records does not exist in the database, so instead of querying the data 360k+, I load a BO with all possible duplicate records to check against and this is the million records BO.



Now the problem is that even when I do a BO.Clear to remove those records the application keeps using a lot of memory (over 1gb) and that memory is not released until the whole application is closed, so when the import process starts again, it will blow up with a not enough memory to complete the process.



So what should I do in order to make sure that the memory used once the million record BO is filled is released when using BO.Clear?



Also I am open to suggestions to change my approach if I need to.



Thanks!

Edhy Rijo

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Edhy Rijo - 15 Years Ago
Greg McGuffey - 15 Years Ago
Edhy Rijo - 15 Years Ago
Greg McGuffey - 15 Years Ago
                     Hi Greg,

Yeap, I believe the BackgroundWorker may have...
Edhy Rijo - 15 Years Ago
Peter Jones - 15 Years Ago
Edhy Rijo - 15 Years Ago
Keith Chisarik - 15 Years Ago
Edhy Rijo - 15 Years Ago
Edhy Rijo - 15 Years Ago
                     To All:

We have made some relatively large changes within...
Trent L. Taylor - 15 Years Ago
                         Hi Trent,

Those are great news. Thanks!

Beside...
Edhy Rijo - 15 Years Ago
                             Edhy, The offending line of code within the StrataFlix sample is...
Trent L. Taylor - 15 Years Ago
                                 Thanks a lot Trent, I really appreciate the time you are taking on...
Edhy Rijo - 15 Years Ago
                                 For a further test, I 100% removed StrataFrame from the formula....
Trent L. Taylor - 15 Years Ago
                                     One more thing worth noting. A reference does stick around, but only...
Trent L. Taylor - 15 Years Ago
                                         It does look to be a .NET issue. Once I started looking this up on...
Trent L. Taylor - 15 Years Ago
                                             Hi Trent,

Yes I got the same results in ANTS. During the...
Edhy Rijo - 15 Years Ago
                                                 Here is some information I found on the web about how to overcome the...
Edhy Rijo - 15 Years Ago
                                                 Hi Trent,

Have you have a chance to take a look at this...
Edhy Rijo - 15 Years Ago
                                                     A little. As we had discussed, this is something that we reproduced...
Trent L. Taylor - 15 Years Ago
                                                         Thanks!
Edhy Rijo - 15 Years Ago
                                                             Hi Trent,

Will the new SF release 1.7.0.6 have any effect...
Edhy Rijo - 14 Years Ago
                                                                 Most likely the two are unrelated since the code you are referring to...
Trent L. Taylor - 14 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search