[Product-Developers] Design advise for collective.alchemyindex

Roché Compaan roche at upfrontsystems.co.za
Fri Oct 3 16:51:06 UTC 2008


I'm wrapping up collective.alchemyindex and want to make the database
configuration as flexible enough for developers that want to use or
extend it.

When indexing an object you have attributes that are single and
multivalued. The single valued attributes can be stored in a single
table and multivalued attributes need a table per attribute due to the
fact that most databases don't have a column type that is multivalued.

When indexing an object, one could query for utilities that implement
IObjectMapper (or IRecordMapper) to index single valued attributes on a
object and query for IKeywordMapper to index attributes that are
multivalued. 

Utilities are really convenient here and it saves me the effort of
building a specialised registry for mappers but I'm not sure that the
above use case fits the semantics of a utility. But maybe it does?

-- 
Roché Compaan
Upfront Systems                   http://www.upfrontsystems.co.za





More information about the Product-Developers mailing list