Hey, all..
I have been working on creating a REST interface using Teapot. In learning how to handle exceptions, I have been following along with the library example.
One of the things i noticed was that, in the library example, they are modeling that data a little differently than i have been..
to persist a list of items (and easily retrieve them), i just gave the object an ���id���, and store them on a class variable as an OrderedCollection..
in the library example, I see something i really like. rather than saving an ordered collection, they save it as a dictionary.
This dictionary goes { id -> object }.. this takes the id out of the the object (which i really like) and makes the id generation pretty much irrelevant..
my question.. is there any performance hit either way once this list grows to tens of thousands of records?
thanks!
----
peace,
sergio
photographer, journalist, visionary
Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
http://www.Village-Buzz.com
http://www.ThoseOptimizeGuys.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101