G
Guest
I'm using a DataReader, populating an object per row with the values and
slapping those objects into an ArrayList.
the DataReader is returning several million records and i'd like to
preinitialize the size of the ArrayList with the exact count of objects that
i'm putting in (to minimize wasted memory because of the ArrayList's growth
algorithm).
Is there a way to get the record count when using a DataReader?
slapping those objects into an ArrayList.
the DataReader is returning several million records and i'd like to
preinitialize the size of the ArrayList with the exact count of objects that
i'm putting in (to minimize wasted memory because of the ArrayList's growth
algorithm).
Is there a way to get the record count when using a DataReader?