Re: [Neo] Neo4j Traverse API

2010-02-25 Thread Johan Svensson
Hi, Would it be possible to just traverse the friends looking for the neo4j text on their profile? Like this: Node user = // get the user; Traverser trav = user.traverse( Order.BREADTH_FIRST, new StopEvStopEvaluator.END_OF_GRAPH, ReturnableEvaluator.ALL_BUT_START_NODE,

[Neo] deleting bd has grown

2010-02-25 Thread Miguel Ángel Águila Lorente
Helo, I'm doing a delete operation, in this case I'm deleting 310.000 nodes from 325.000 nodes. I can delete and after that all works well because the nodes when I get them only appears the no deleted nodes, but the size of the folder that contains neo4j database has grown. Specifically has grown

Re: [Neo] deleting bd has grown

2010-02-25 Thread Johan Svensson
Hi, Yes those files holds ids that can be reused. If you startup again and create 310k nodes the id file will shrink and the db file will not change in size. Regards, -Johan 2010/2/25 Miguel Ángel Águila magu...@ac.upc.edu: Helo, I'm doing a delete operation, in this case I'm deleting 310.000

Re: [Neo] deleting bd has grown

2010-02-25 Thread Miguel Ángel Águila Lorente
Hi, in this part I agree with you but if I had deleted 310.000 nodes from 325.000 from de database I think that the database should decrease its spaces. Before delete the space of the database was 432 MB and after the delete the database grown until 474 MB, also storing the indexes for reusing

Re: [Neo] deleting bd has grown

2010-02-25 Thread Laurent Laborde
this a normal behaviour on most RDBMS too. The size won't decrease until you do some kind of vacuum full. At best, the space will be reused when reinserting new data. -- Ker2x 2010/2/25 Miguel Ángel Águila magu...@ac.upc.edu: Hi, in this part I agree with you but if I had deleted 310.000

Re: [Neo] Java outof 64 GB ram

2010-02-25 Thread rick . bullotta
Yes, exactly the question. If it's a big string, it is quite possible to have the file grow this large. Miguel, approximately how long is the property value? Original Message Subject: Re: [Neo] Java outof 64 GB ram From: Johan Svensson

Re: [Neo] IllegalStateException meaning

2010-02-25 Thread Johan Svensson
If a commit fails (after prepare) with an exception and the status of the transaction got set to STATUS_COMMITTED recovery has to be performed (TM will not accept any calls until that transactions has been recovered properly). If the status was not updated to committed the TM will try to rollback

[Neo] Traversal

2010-02-25 Thread Sumanth Thikka
Hi, A doubt regarding traverser. I created a network with 8 nodes and relations between the nodes are: node1 - node2 node1 - node4 node1 - node6 node1 - node3 node1 - node7 node2 - node3 node2 - node8 node4 - node5 node6 - node7 node3 - node8 node1, node3, node5, node7and node8 have the name

Re: [Neo] No indexing capabilities on the classpath

2010-02-25 Thread Mattias Persson
The index command is quite new and not very tested or polished so please come back with feeback if there's something you feel could be improved! 2010/2/25 Gutemberg Vieira gutemberg.lis...@gmail.com: Ok Mattias, Thank you! Now, it works. -- Gutemberg On Thu, Feb 25, 2010 at 2:23 PM,

Re: [Neo] No indexing capabilities on the classpath

2010-02-25 Thread Gutemberg Vieira
Ok Mattias, Thank you! Now, it works. -- Gutemberg On Thu, Feb 25, 2010 at 2:23 PM, Mattias Persson matt...@neotechnology.comwrote: You can't (at least as far as I know) use -jar and -cp at the same time... you'll have to do: java -cp $CLASSPATH org.neo4j.shell.StartClient -path

Re: [Neo] No indexing capabilities on the classpath

2010-02-25 Thread Mattias Persson
You can't (at least as far as I know) use -jar and -cp at the same time... you'll have to do: java -cp $CLASSPATH org.neo4j.shell.StartClient -path /somewhere/neo4jdb/ instead and I'm sure it'll work for you! where your CLASSPATH would have to include neo4j-kernel,the JTA jar

Re: [Neo] Traversal

2010-02-25 Thread Anders Nawroth
Hi Sumanth! Using depth-first traversals can give you some surprises, have a look here for an explanation: http://wiki.neo4j.org/content/Gotchas#Calculating_path_distances /anders Sumanth Thikka wrote: Hi, A doubt regarding traverser. I created a network with 8 nodes and relations

[Neo] BatchInserter.java fails

2010-02-25 Thread Lyudmila L. Balakireva
Hi, I am testing load of ntriples to the neo from files . I am using almost the same code I found in https://trac.neo4j.org/browser/components/rdf-sail/trunk/src/test/java/org/neo4j/rdf/sail/BatchInserter.java What can cause the problem: Caused by: java.io.IOException: Log rotation failed,

Re: [Neo] Estrange exception when running multithreaded

2010-02-25 Thread Raul Raja Martinez
Hi Mattias, Thanks for the docs. I'm trying to solve this issue now and here is the problem I'm facing... Where it says in the wiki: Rewrite your code, making sure that such scenarios won't happen. Run your deadlock-prone code in a try-catch(DeadlockDetectedException) block and just rerun the