Not a bad idea. So something like: if a user drags/drops item X in between
item Y and Z, set X's weight to halfway between Y's and Z's?

Clever. =)

On Thu, Jan 19, 2012 at 1:28 PM, Linan Wang <tali.w...@gmail.com> wrote:

> how about "weight"?
>
> On Thu, Jan 19, 2012 at 6:23 PM, Aseem Kishore <aseem.kish...@gmail.com>
> wrote:
> > Hi there,
> >
> > Take a Facebook-like example, where users can "like" different
> > movies/music/celebs/etc. Suppose we want to let users drag-and-drop these
> > movies/etc. on their profile pages, to let them e.g. show their favorite
> > movies first.
> >
> > How would you guys recommend achieving that in Neo4j? If possible, I'd
> like
> > to avoid creating a node for every relationship (redundancy/overhead as
> we
> > do this more and more).
> >
> > I can't think of anything better than putting properties on the
> > relationship. Maybe index numbers (e.g. rel D might have "index: 0", rel
> B
> > might have "index: 1", etc.), but that's essentially reordering an array,
> > which sucks. The other option that thus came to mind was to mimic a
> linked
> > list: have an "after" property that contains the ID of the relationship
> > this one comes after (and/or maybe a "before" property instead or in
> > addition).
> >
> > Just wondering if there are better ideas! Thanks. =)
> >
> > Aseem
> > _______________________________________________
> > NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please
> register and consider posting at
> https://groups.google.com/forum/#!forum/neo4j
> >
> > Neo4j mailing list
> > User@lists.neo4j.org
> > https://lists.neo4j.org/mailman/listinfo/user
>
>
>
> --
> Best wishes,
>
> Linan Wang
> Architect, Programmer, PhD
> _______________________________________________
> NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please
> register and consider posting at
> https://groups.google.com/forum/#!forum/neo4j
>
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>
_______________________________________________
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to