[infinispan-dev] Tree API module wiki

Manik Surtani manik at jboss.org
Fri Nov 26 08:05:05 EST 2010


On 25 Nov 2010, at 03:24, Eduardo Martins wrote:

> Great, finally an easy migration from JBoss Cache.
> 
> Just to know our options in Mobicents future, are there any cons on
> using this API? Is there a reason to change a data model/schema coming
> from JBoss Cache, that really takes advantage of node relations
> parent/child? For instance it's very common to retrieve the set of
> childs for a node, another common usage is the removal for a complete
> subtree. We have time to rework this data model if it's not the best
> usage, we want it as fast as possible, both local and cluster/cloud
> modes.

There is nothing wrong with using the Tree API, except that it doesn't perform as well as the flat API.  Now don't let this scare you off - in terms of performance, we're talking 5 ~ 10% and if the API works better for you, then use it.  But you should benchmark for yourself and see whether you need to extract this extra performance in exchange for reworking your data model.  YMMV.  :-)

Cheers
Manik

--
Manik Surtani
manik at jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org







More information about the infinispan-dev mailing list