c# - What would be too big for a dictionary, when using IEnumerable.ToDictionary()? -


say that, in method, pass in couple ienumerables (probably because i'm going bunch of objects db or something).

then each object in objects1, want pull out diffobject objects2 has same object.id.

i don't want multiple enumerations (according resharper) make objects2 dictionary keyed object.id. enumerate once each. (secondary question)is pattern?

(primary question) what's big? @ point horrible pattern? how many objects many objects dictionary?

internally, prevented ever having more 2 billion items. since way things positioned within dictionary complicated, if looking @ dealing billion items (if 16-bit value, example, 2gb), i'd looking store them in database , retrieve them using data-access code.

i have ask though, objects1 , objects2 coming from? sounds though @ db level , much, more efficient doing in c#!

you might want consider using keyvaluepair[]


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -