complex query

Chris Muller chris at funkyobjects.org
Wed Feb 21 05:10:01 UTC 2007


> I want to persist a graph. My graph is composed of nodes, which are
> the 
> objects I want to persist. Each node has a links attributes which is
> a 
> collection of link objects. The only index for the node is an integer
> 
> ID. I could have an index on the text description of the nodes, but
> the 
> string  are just too long, so an index on it is unusable. 

"Description" type fields would typically be keyword indexed..  If it
is an exact-match description, you could index on the integer hash of
the description..

> What I need
> is 
> indexes on the link.

The links could be indexed by their node id.

> Now I will probably move all the nodes links outside of the links'
> node 
> attribute to a specific MagmaCollection. In that case I could have 
> several index for the link: owner, target, linkValue, etc.

I'm still not too clear about these requirements, but that all sounds
fine..




More information about the Magma mailing list