[Glass] Indexing question
BrunoBB
smalltalk at adinet.com.uy
Tue Dec 10 10:39:48 PST 2013
Hi Richard,
Let say i create the class FormFieldValue (name,value). name a string and
value a string/integer/date/time (a basic value)
Now FormInstance has collection of FormFieldValue. If two forms has the same
subset of names then they are the same type of form.
We have a back reference to the form which holds these fields, [xmlString]
holds a XML that represent the form.
The only way i see to create an index on values is to have a collection of
these FormFieldValue that represent all forms of this type and then create
the index over this collection.
collectionOfFormFieldValues createEqualityIndexOn: 'name'. "all forms of
type 1"
collectionOfFormFieldValues createEqualityIndexOn: 'form_code'. "all forms
of type 2"
and so on...
Is this your suggestion ?
Thanks very much...
Do you see any problem in holding an XML string representing the form inside
GemStone ?
or it will be better to write down the xmlString to disk ?
Regards,
Bruno
--
View this message in context: http://forum.world.st/Indexing-question-tp4728875p4729024.html
Sent from the GLASS mailing list archive at Nabble.com.
More information about the Glass
mailing list