[fdo-users] Re: Memory issue with FDO IInsert and workaround

Jackie Ng jumpinjackie at gmail.com
Mon Apr 9 22:26:00 EDT 2012


1. Are you closing the feature readers returned by each insert execution?
2. Are you clearing and re-populating the property value collection of the
insert command with new PropertyValue objects -or- are you nulling all the
PropertyValue objects in the collection and re-setting the appropriate
values for the next record to be inserted?

Point #2 is pertinent because the former approach results in n x m memory
allocations (n property values, m records to be inserted), whereas the
latter only requires n memory allocations. This may be the cause of the
memory fragmentation.

- Jackie

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Memory-issue-with-FDO-IInsert-and-workaround-tp4717196p4718048.html
Sent from the FDO Users mailing list archive at Nabble.com.


More information about the fdo-users mailing list