Re: [Neo4j] Need Node.isDeleted() again ...

2010-12-19 Thread Andreas Ronge
I think a list impl. will be good enough. Will be faster then doing it in ruby anyway. On Sunday, December 19, 2010, Andreas Ronge wrote: > Thanks ! >  but maybe it will be slower if one only have one deleted node in a tx ? > Want it fast both for small and huge transactions > is it not possible t

Re: [Neo4j] Need Node.isDeleted() again ...

2010-12-19 Thread Mattias Persson
2010/12/19 Mattias Persson > > > 2010/12/19 Andreas Ronge > > Thanks ! >> but maybe it will be slower if one only have one deleted node in a tx ? >> Want it fast both for small and huge transactions >> is it not possible to find out if a node is deleted or not without >> using an internal colle

Re: [Neo4j] Need Node.isDeleted() again ...

2010-12-19 Thread Mattias Persson
2010/12/19 Andreas Ronge > Thanks ! > but maybe it will be slower if one only have one deleted node in a tx ? > Want it fast both for small and huge transactions > is it not possible to find out if a node is deleted or not without > using an internal collection ? > This solution doesn't sacrifi

Re: [Neo4j] Need Node.isDeleted() again ...

2010-12-19 Thread Andreas Ronge
Thanks ! but maybe it will be slower if one only have one deleted node in a tx ? Want it fast both for small and huge transactions is it not possible to find out if a node is deleted or not without using an internal collection ? On Sunday, December 19, 2010, Mattias Persson wrote: > I just added

Re: [Neo4j] Need Node.isDeleted() again ...

2010-12-19 Thread Mattias Persson
I just added TransactionData#isDeleted(Node) and TransactionData#isDeleted(Relationship) and made the internal collection to hold the deleted entities a HashSet for fast lookups. 2010/12/15 Mattias Persson > > > 2010/12/14 Andreas Ronge > > Hi >> >> I'm still struggling with not having a Node.i

Re: [Neo4j] Need Node.isDeleted() again ...

2010-12-15 Thread Mattias Persson
2010/12/14 Andreas Ronge > Hi > > I'm still struggling with not having a Node.isDeleted() method in the API. > > Here is an example where I need this method: > I'm using the event framework to implemented a simple rule system. > When a node/relationship changes it can trigger an action like setti

[Neo4j] Need Node.isDeleted() again ...

2010-12-14 Thread Andreas Ronge
Hi I'm still struggling with not having a Node.isDeleted() method in the API. Here is an example where I need this method: I'm using the event framework to implemented a simple rule system. When a node/relationship changes it can trigger an action like setting a property on another node. That nod