I have a dictionary of 10,000 product / color / size combinations that I created using something like:
AllRecords = DB.ProductColourSizes _ .ToDictionary(function(b) String.Format("{0}_{1}_{2}", _ b.ProductCode, b.ColourCode, b.SizeCode))
So, an example key is like "13AI_GRS_M"
I need to synchronize my database with the company's ERP every 30 minutes, and for each color / size combination I need to use this dictionary to add, edit or delete entries. I would like them to provide identification numbers.
I do not know how the dictionary works inside. How fast does .NET find the correct value based on such a key? Should I sort the database query, or does .NET have another way to identify the key?
Or do I need to convert it to a list and use a dictionary to determine the correct index? Or another way?
I also use Static Dictionaries in this way throughout my website app, so learning the best way to do this would have a great impact.
Thanks a lot Steve
Steve mcgill
source share