Re: [Neo] Traverser node return process

2010-04-29 Thread Mattias Persson
the problem you see is GC trashing, the most CPU time is spent running GC since most of the heap is occupied by objects. A traverser keeps track of which nodes it has visited and for a big traversal that can be a problem. A better solution for you here would be to call: startNode.getRelationshi

[Neo] Traverser node return process

2010-04-29 Thread Bhuvan
Hello, We are trying to explore Neo4j for a huge number of graph nodes and relations. Let's say there are about 6 million users across the world and 6 million user address elements like postal-code/city/state/country etc. Now I am trying to get all users in a given country which has about 3 milli

[Neo] IndexBatchInserter can't read an index

2010-04-29 Thread Jon Noronha
I have a database with around 7 million nodes, all of them indexed using the LuceneIndexBatchInserter. I've confirmed that the indexing works by using neo4j.py and Neoclipse -- the information is all there. I'm now trying to write a separate script for adding all the relationships between these no

Re: [Neo] neo4j commons

2010-04-29 Thread Anders Nawroth
Hi! Commons is included in the Neo4j kernel since the latest snapshots: http://m2.neo4j.org/org/neo4j/neo4j-kernel/1.1-SNAPSHOT/ For the 1.0 release, download packages of commons are located here: http://m2.neo4j.org/org/neo4j/neo4j-commons/1.0/ /anders Kiss Miklós wrote: > Hello, > > I'm try

[Neo] neo4j commons

2010-04-29 Thread Kiss Miklós
Hello, I'm trying to make neo4j database up and running with basic indexing service in java. Everything works fine except for the indexing: I can't find the org.neo4j.commons package. The link on neo4j's web page is broken: https://svn.neo4j.org/components/commons/trunk/ Where can I download t

[Neo] NetworkDiameter class/calculation

2010-04-29 Thread Alex Averbuch
Hey, Is there any example code on how to use the NetworkDiameter class? The use case is an unweighted graph where all edge types should be considered. Problems I'm having: - How do I consider more than 2 edge types? - Which node should the startNode be? Is the Reference node alright? -

Re: [Neo] Event framework has landed

2010-04-29 Thread Atle Prange
No, its just an index/key-value store with no transactional capabilities other than when no exception is being thrown, the index is updated. Any tx handling must be impemented on top. On Thu, Apr 29, 2010 at 2:35 PM, Tobias Ivarsson < tobias.ivars...@neotechnology.com> wrote: > On Thu, Apr 29, 2

Re: [Neo] Event framework has landed

2010-04-29 Thread Tobias Ivarsson
On Thu, Apr 29, 2010 at 2:19 PM, Atle Prange wrote: > > BTW.: I wrote a new IndexService using BabuDB [1]. BabuDB is really fast, > but does not work for fulltext query. For now the IndexService is embedded > in the Object-graph mapper i wrote [2]. Anyone is free to check it out, if > it looks int

Re: [Neo] Event framework has landed

2010-04-29 Thread Atle Prange
I am using the event framework to auto-index nodes based on a special name i give the properties: Whenever i want a property to be indexed, i append :index= to the property-name. On afterCommit() i check all changed properties, and re-index the values that have changed. Really simple and smooth, th

Re: [Neo] Event framework has landed

2010-04-29 Thread Atle Prange
Fixed, nice :) atle On Thu, Apr 29, 2010 at 12:16 PM, Mattias Persson wrote: > Oo, wait a minute... I saw the problem. Try again with the latest code > (just > committed)! > > 2010/4/29 Atle Prange > > > Really nice, but it seems that afterCommit() never receives any data, the > > TransactionD

Re: [Neo] Event framework has landed

2010-04-29 Thread Mattias Persson
Oo, wait a minute... I saw the problem. Try again with the latest code (just committed)! 2010/4/29 Atle Prange > Really nice, but it seems that afterCommit() never receives any data, the > TransactionData argument is always null.. > > On Tue, Apr 27, 2010 at 10:15 AM, Mattias Persson < > matt...

Re: [Neo] Event framework has landed

2010-04-29 Thread Mattias Persson
Could you please supply code to reproduce this? 2010/4/29 Atle Prange > Really nice, but it seems that afterCommit() never receives any data, the > TransactionData argument is always null.. > > On Tue, Apr 27, 2010 at 10:15 AM, Mattias Persson < > matt...@neotechnology.com > > wrote: > > > Hi ev

Re: [Neo] Event framework has landed

2010-04-29 Thread Atle Prange
Really nice, but it seems that afterCommit() never receives any data, the TransactionData argument is always null.. On Tue, Apr 27, 2010 at 10:15 AM, Mattias Persson wrote: > Hi everyone! > > I'm quite pleased to announce that the new event framework has been > committed in kernel 1.1-SNAPSHOT.

Re: [Neo] How to define StartNodes and Reference Nodes

2010-04-29 Thread Mattias Persson
I don't really understand you problem, but it sounds like if you have few collection types you can go with relationship types by different names. Else, if the number of collections is big you can make use of indexing, http://components.neo4j.org/neo4j-index/ to index your nodes and get them directl

Re: [Neo] How to define StartNodes and Reference Nodes

2010-04-29 Thread Rick Bullotta
Hi, Stefan. I always define my start nodes connected to the root node via specific relationship types. For example, I might have a collection of people and a collection of cars. I would create a new node to be the start node of the people collection, and create A relationship from the root n

[Neo] How to define StartNodes and Reference Nodes

2010-04-29 Thread Stefan Berndt
Hello I'm familiarizing with Neo4j more and more. After testing some rudimentary things I'm now trying to write my first Neo4j application with the following Graph: StartNode |->CollectionType1--->CollectionType1_1 | | | |>CollectionType1_2

Re: [Neo] REST API w/ LuceneFulltextQueryIndexService

2010-04-29 Thread Mattias Persson
So, I've added that functionality now... so if you download the latest distribution you should be able to do such indexing/queries (on /index/fulltext-node/.). Remember to URI-encode your keys and values. So that even if you have a complex query just encode it and you'd be fine. You example wo