Re: [Neo4j] Turning Off or Configuring log rotation

2011-09-22 Thread Peter Neubauer
Romiko, which log files are you referring to? For the database transaction log rotation, look at the neo4j.properties file to tune things, see http://docs.neo4j.org/chunked/snapshot/server-configuration.html For the server, there is logging.properties to tweak stuff. Note that these settings

Re: [Neo4j] Unrolled Linked List

2011-09-22 Thread Peter Neubauer
Uhh, great stuff Bryce! I really need to get some manual goodness working here, so we can get out the resulting graph structure for users to understand and use in the right way. Cool stuff! Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975

Re: [Neo4j] List all indexed key/values for an entity

2011-09-22 Thread Peter Neubauer
Mmh, us being quite non-academic, I think Indexes is good for me at least :) Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter      http://twitter.com/peterneubauer

Re: [Neo4j] How to use RelationshipIndex'es in a Cypher Query?

2011-09-22 Thread Andres Taylor
HI there, Answers inline, On Wed, Sep 21, 2011 at 8:16 PM, st.pa st...@web.de wrote: Hi, I've got a Cypher query with some 10k possible source nodes and some 10k intended target nodes out of some 1M possible target nodes which looks something like the following: START source =

Re: [Neo4j] List all indexed key/values for an entity

2011-09-22 Thread Rick Bullotta
It would be nice to have this exposed in the embedded index framework as well. On Sep 21, 2011, at 7:05 PM, Tim McNamara paperl...@timmcnamara.co.nz wrote: +1 But the plural of index is indices. On 22/09/2011 1:56 AM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Josh, very

Re: [Neo4j] List all indexed key/values for an entity

2011-09-22 Thread Peter Neubauer
Yes, that is where the support will be built - in. Stay tuned for details :) Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter      http://twitter.com/peterneubauer

[Neo4j] neo4j python import error

2011-09-22 Thread bmeagle
Hi all, Decided to give neo4j via python a try but alas: from neo4j import GraphDatabase Traceback (most recent call last): File lt;pyshell#1gt;, line 1, in module from neo4j import GraphDatabase File C:\Python27\lib\site-packages\neo4j\__init__.py, line 29, in module from

Re: [Neo4j] Turning Off or Configuring log rotation

2011-09-22 Thread Romiko Derbynew
Hi, It's the database logging, I'm finding the transaction logs are causing the rest API to become unresponsive when it flushes to disk. Basically just want to turn it off or set the tlog size by configuration and not via code sample as it is demonstrated in the performance guide. The

Re: [Neo4j] Turning Off or Configuring log rotation

2011-09-22 Thread Peter Neubauer
Romiko, I would suggest to do the TX log config via Gremlin for the time being, so you can resolve it via scripting. For the exposure of the Tx log rotate size as a configuration property (there are logs for every XA resource participating in a transaction), please raise an issue at

Re: [Neo4j] Creating a graph database with BatchInserter and getting the node degree of every node

2011-09-22 Thread st3ven
Hi Linan, that would just fit for that scenario and I wouldn't use the graph database to get the node degree. In that scenario I could also use my relationship file to calculate the node degree, but I also want to check some other metrics on the graph database like cluster coefficient and so on.

Re: [Neo4j] Creating a graph database with BatchInserter and getting the node degree of every node

2011-09-22 Thread st3ven
Hi Johan, I changed the settings as you described, but that changed the speed not really significantly. To store the degree as a property on each node is an option, but I want the node degree to be calculated from the graph database as I also want to check some other metrics on the entire graph.

Re: [Neo4j] neo4j python import error

2011-09-22 Thread Jacob Hansson
Hmm, I think the error you are getting is the result of neo4j-embedded not finding java jars that it needs (I'll add it to the backlog to add an explicit check for that, rather than failing like this). Normally, neo4j-embedded will set its classpath itself, pointing to the java jars it comes

Re: [Neo4j] neo4j python import error

2011-09-22 Thread bmeagle
I tried adding C:\Python27\Lib\site-packages\neo4j\javalib to sys.path but that didn't work, see below. I am running python 2.7 on win xp I installed neo4j-embedded-1.5.dev104.win32.exe import neo4j Traceback (most recent call last): File lt;pyshell#0gt;, line 1, in module import neo4j

Re: [Neo4j] neo4j python import error

2011-09-22 Thread Jacob Hansson
No, the sys.path thing won't work, JPype doesn't pull it's java libs off of sys.path (unfortunately). Instead, it needs an explicit java classpath passed to it when it gets instantiated. Neo4j-embedded sets that classpath either on it's own (which may be broken on windows, I'm investigating that

Re: [Neo4j] neo4j python import error

2011-09-22 Thread bmeagle
I manually added the path to the CLASSPATH windows environment variable via system settings. print os.environ['CLASSPATH'] .;C:\Program Files\Java\jre1.6.0_07\lib\ext\QTJava.zip;C:\Python27\Lib\site-packages\neo4j\javalib\ checked it: libpath =

Re: [Neo4j] neo4j python import error

2011-09-22 Thread Jacob Hansson
On Thu, Sep 22, 2011 at 3:16 PM, bmeagle dewald.piete...@gmail.com wrote: I manually added the path to the CLASSPATH windows environment variable via system settings. print os.environ['CLASSPATH'] .;C:\Program

Re: [Neo4j] neo4j python import error

2011-09-22 Thread Jacob Hansson
Update on this: I just pushed this to master, you will be able to follow the build via our build control panel. When the deploy Embedded Python project has run successfully, the updated version should be available on pypi for download. There is currently almost 200 builds queued up, so it may

Re: [Neo4j] class org.springframework.data.neo4j.config.Neo4jConfiguration is not an enhanced class

2011-09-22 Thread Peter Neubauer
Wim, you probably should try out the neo4j-friendly branch instead, but I hear you are already in contact with Michael on this - might actually be a Spring - issue ... Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn  

[Neo4j] Great Cypher and Gremlin posts

2011-09-22 Thread Peter Neubauer
All, Cypher - the declarative graph matching approach is coming along, and Adriano is keeping track of things - http://ahalmeida.com/2011/09/22/neo4js-cypher-internals-part-2-all-clauses-more-scalas-parser-combinators-and-query-entry-point/ For the current state:

Re: [Neo4j] class org.springframework.data.neo4j.config.Neo4jConfiguration is not an enhanced class

2011-09-22 Thread Wim Rijnders
Peter, Could you point me to this neo4j-friendly branch? Regards, Wim. On Thu, Sep 22, 2011 at 4:43 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Wim, you probably should try out the neo4j-friendly branch instead, but I hear you are already in contact with Michael on this -

Re: [Neo4j] How to use RelationshipIndex'es in a Cypher Query?

2011-09-22 Thread st.pa
Ahoy, I'll answer inline too. 22.09.2011 10:51, Andres Taylor wrote: HI there, Answers inline, On Wed, Sep 21, 2011 at 8:16 PM, st.past...@web.de wrote: Hi, I've got a Cypher query with some 10k possible source nodes and some 10k intended target nodes out of some 1M possible target

Re: [Neo4j] Unrolled Linked List

2011-09-22 Thread Niels Hoogeveen
It looks really cool. I always find it fun to create something and later find out it is an already known construction (something worth inventing). Anyway, I pulled your code and will removed the dependencies to the Enhanced API stuff this week. After that we can start adding some

[Neo4j] REST, Transactions and Uniqueness

2011-09-22 Thread twooster
Hi, I've seen this come up a number of times in various forms on the mailing list, but -- while there are some scattered answers here and there -- there doesn't seem to be much of a definitive solution. The problem I'm looking to solve is basic uniqueness (e.g. for creating an account -- unique

Re: [Neo4j] Turning Off or Configuring log rotation

2011-09-22 Thread Romiko Derbynew
Hi Peter, I think this will be ok via gremlin. Have you got any sample gremlin code that can do this, that would be much appreciated. Also in the long term I think a combo of tx logs + rest API batching will be the solution. Sent from my iPhone On 22/09/2011, at 10:08 PM, Peter Neubauer

Re: [Neo4j] Turning Off or Configuring log rotation

2011-09-22 Thread Peter Neubauer
Romiko, Gremlin is basically executing Java on the server side and thus can do anything java can do. http://docs.neo4j.org/chunked/snapshot/gremlin-plugin.html#rest-api-send-an-arbitrary-groovy-script---lucene-sorting has an example of mixing native Neo4j API calls (g.createNode() etc) after

Re: [Neo4j] Turning Off or Configuring log rotation

2011-09-22 Thread Tatham Oddie
Hi Peter The REST interface is waiting for the TX to be finished I'm not sure I understand this statement. Isn't each individual REST call its own transaction? Thus, what is it waiting for? -- Tatham -Original Message- From: user-boun...@lists.neo4j.org

Re: [Neo4j] Unrolled Linked List

2011-09-22 Thread Bryce
Good stuff. I am presently looking into concurrent use of a given UnrolledLinkedList at least within the same graph database instance, might be a little bit harder in HA environment. Its hard enough writing test cases for this, maybe even harder than making it work properly! Hoping that some

Re: [Neo4j] Rebuilding Lucene index

2011-09-22 Thread Rama Manusama
Hi all, Would like to confirm that the problem got somewhat solved after it tried to perform CheckIndex -fix on every lucene index folder. Unfortunately I could not investigate which 'corrupted' index did the tool delete, therefore a 'complete' index rebuilding would be a good last option in this

Re: [Neo4j] Turning Off or Configuring log rotation

2011-09-22 Thread Romiko Derbynew
Hi Peter, Thank you so much for the tips, will look into this today and see what I can come up with. After my musings will definitely file for new features e.g * Batching via rest api (Being on .Net we rely solely on the Rest API) * Configuration level control of transaction log default sizes

Re: [Neo4j] REST, Transactions and Uniqueness

2011-09-22 Thread Linan Wang
Hi, i had the issue few days ago and thanks to McKinley I got a workable solution. i think the best way to do is through unmanaged extension. the overhead of multiple REST calls could make the matter more complex. here is part of my ObjectFactory class. in my situation it's an external id needs

Re: [Neo4j] Unrolled Linked List

2011-09-22 Thread Peter Neubauer
Nice, sounds very useful! Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter      http://twitter.com/peterneubauer http://www.neo4j.org               - Your high performance graph