Array of idNumbers, or collection of objects?

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Array of idNumbers, or collection of objects?

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:10 pm

by pillick >> Fri, 26 Jul 2002 2:17:04 GMT

Say I have an object with many fields, one of which is the field idNumber. I have a collection class for this object, which uses idNumber as the primary key.

For one of my processes, the only part of the object I am interested in is the idNumber. Should I use a collection of the objects themselves, or just use an array of the idnumbers?

The collections or arrays have to be stored persistantly. So I am worried about the amount of space to store each of these, as well as the preformance of searching for particular idNumbers.

So which should I use?

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 40 guests

cron