Hmmm... If you serialize the tree properly in a partition, you could always
read an entire sub-tree as a single slice (consecutive CQL rows.) Is there
much more to it?

-- Jack Krupansky

On Fri, Mar 27, 2015 at 7:35 PM, Ben Bromhead <[email protected]> wrote:

> +1 would love to see how you do it
>
> On 27 March 2015 at 07:18, Jonathan Haddad <[email protected]> wrote:
>
>> I'd be interested to see that data model. I think the entire list would
>> benefit!
>>
>> On Thu, Mar 26, 2015 at 8:16 PM Robert Wille <[email protected]> wrote:
>>
>>> I have a cluster which stores tree structures. I keep several hundred
>>> unrelated trees. The largest has about 180 million nodes, and the smallest
>>> has 1 node. The largest fanout is almost 400K. Depth is arbitrary, but in
>>> practice is probably less than 10. I am able to page through children and
>>> siblings. It works really well.
>>>
>>> Doesn’t sound like its exactly like what you’re looking for, but if you
>>> want any pointers on how I went about implementing mine, I’d be happy to
>>> share.
>>>
>>> On Mar 26, 2015, at 3:05 PM, List <[email protected]> wrote:
>>>
>>> > Not sure if this is the right place to ask, but we are trying to model
>>> a user-generated tree hierarchy in which they create child objects of a
>>> root node, and can create an arbitrary number of children (and children of
>>> children, and on and on).  So far we have looked at storing each tree
>>> structure as a single document in JSON format and reading/writing it out in
>>> it's entirety, doing materialized paths where we store the root id with
>>> every child and the tree structure above the child as a map, and some form
>>> of an adjacency list (which does not appear to be very viable as looking up
>>> the entire tree would be ridiculous).
>>> >
>>> > The hope is to end up with a data model that allows us to display the
>>> entire tree quickly, as well as see the entire path to a leaf when
>>> selecting that leaf.  If anyone has some suggestions/experience on how to
>>> model such a tree heirarchy we would greatly appreciate your input.
>>> >
>>>
>>>
>
>
> --
>
> Ben Bromhead
>
> Instaclustr | www.instaclustr.com | @instaclustr
> <http://twitter.com/instaclustr> | (650) 284 9692
>

Reply via email to