[Glass] How to manage large amounts of data ...

itlists at schrievkrom.de itlists at schrievkrom.de
Thu Aug 14 07:01:20 PDT 2014


Assuming I have a large number of objects with a unique key attribute
(uuid based).

Normally I use an instance of class Dictionary (or perhaps better:
StringKeyValueDictionary) to store instances of these objects. The
initial finding access to these objects are mostly done via its unique
key attribute.

So the access to an instance was pretty fast:

 ^aDictionary at: aKey ifAbsent: [ nil ]

But what happens, if this dictionary is getting very large (say: a
million of entries) ?

Is is better to have a different approach then: e.g. a collection with a
defined index on that unique attribute ?


Thanks for answering ...

Marten


-- 
Marten Feldtmann


More information about the Glass mailing list