[fdo-users] How to attach/detach a property from a propertyvalues of IInserCmd
    Jackie Ng 
    jumpinjackie at gmail.com
       
    Mon Jul  9 08:20:21 PDT 2012
    
    
  
You should bulk insert like so:
 * Execute source query, get feature reader
 * Iterate it's Class Definition to construct the initial property value
collection for the insert command
 * While source reader has results
    * Call SetNull(true) on all boxed property values in the collection
    * Iterate through each property
       * If property is not null for this current reader, call SetValue() on
the corresponding boxed property value, with the matching GetXXX() call on
the source reader
    * Insert with this property value collection
    * Read next result in source reader. Repeat.
This strategy only results in n memory allocations (n = number of properties
in the reader). Every reader loop iteration is just flipping null states and
setting values, no need to add/remove property values in each iteration.
- Jackie
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-attach-detach-a-property-from-a-propertyvalues-of-IInserCmd-tp4986964p4986981.html
Sent from the FDO Users mailing list archive at Nabble.com.
    
    
More information about the fdo-users
mailing list