On Sep 5, 2008, at 12:22 PM, Jean-Vincent Drean wrote: > On Fri, Sep 5, 2008 at 12:17 PM, Vincent Massol <[EMAIL PROTECTED]> > wrote: >>> >>> At first sight I'd say that using objects (including current tag >>> feature) would lead to complex queries. >> >> Yes but that's an API problem not a design one. >> >> If our API makes it complex to do queries on objects then we should >> fix it. Not do workarounds! Because if we do this then we >> acknowledge >> that the whole foundation of XWiki is bad (i.e. Class/Objects don't >> work). That would be a shame :) >> > > I was thinking about performance too, I've added "at first sight" > because I'm not sure it would be noticeable.
Same comment as above... :) We should check this since querying objects shouldn't cause any performance hit or we'll have problems since xwiki is all about adding objects. But at least do we agree that the way to add metadata to document is by using objects? Question: I've also added a syntaxId field in XWikiDocument a while back to support the different syntaxes. That should also be a good candidate for an Object. I think all that's left to do is clarify the relationship between Objects and XWiki core (i.e. Objects used by xwiki core): - should they be created automatically by xwiki core if they don't exist (class + object), - should they not be created by have default values configured in xwiki's configuration - should they be created on first query if not found? Thanks -Vincent _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

