[Yanel-dev] [Yarep] Refactoring indexing of properties
Michael Wechner
michael.wechner at wyona.com
Sat May 8 10:14:28 CEST 2010
Hi
I am currently trying to improve the indexing of properties.
First of all I wanted to ask why we introduced a method
index(Node, Property)
instead
index(Node, String propertyName)
?
The reason I am asking is because one can get the property directly from
the Node via Node.getProperty(propertyName),
whereas the method index(Node, Property) might seduce to index a
property which has no connection with the Node itself.
Hence I would like to change this API, whereas it would break backwards
compatibility, but AFAIK this method is not used except within Yarep
itself so far.
Also I think it would make sense maybe to introduce a method called
indexProperties(Node), because in many usecases the properties are
updated concurrently (and also peformance might have some advantages)
and this might simplify the indexing process, but I am not so sure
either if this is a good idea.
WDYT?
Thanks
Michi
More information about the Yanel-development
mailing list