[Neo4j] How to create multiple nodes with cypher in neo4j

2014-03-11 Thread John Bower
I would like to create multiple disconnected nodes using a single cypher query The documentation says: Create multiple nodes with a parameter for their properties. By providing > Cypher an array of maps, it will create a node for each map. CREATE (n { props }) RETURN n In the neo4j r

[Neo4j] Usage Logging: In the Graph?

2014-03-11 Thread Evan Grantham-Brown
I'm working on an application with a Neo4j back end (current version 2.0.0-RC1, but we will likely update it periodically to stay current), and am debating how to handle usage logging. The situation: We want to keep track of who viewed what nodes, and how many times, in order to do things like

[Neo4j] Use both graph database and relational database

2014-03-11 Thread Hưởng Nguyễn Tiến
I have intended to create a small social network and to use both graph database and relational database. I intend to use django, postgre and neo4j Graph Database store relationships between users, post or like. Relational database store information of users, content of post. I don't know wheth

Re: [Neo4j] Neo4j number of server threads

2014-03-11 Thread Michael Hunger
The default number of threads for the server is 10x # of CPUs Perhaps you should detail more how you use that server. Cheers, Michael (michael)-[:SUPPORTS]->(YOU)-[:USE]->(Neo4j) Learn Online, Offline or Read a Book (in Deutsch) We're trading T-shirts for cool Graph Models Am 11.03.

[Neo4j] Re: Neo4j number of server threads

2014-03-11 Thread Reihane Boghrati
I want to add that the operating system is Windows 2012 Datacenter. On Monday, March 10, 2014 3:25:18 PM UTC-8, Reihane Boghrati wrote: > > > Hi, > > I'm running a workload and I'm observing a low CPU and network utilization > on the PC hosting my Neo4j server. > The disk queue is less than 1 ele

Re: [Neo4j] how delete lots of relationship

2014-03-11 Thread Michael Hunger
No, no need to restart the db, the code should look like this: Transaction tx = db.beginTx(); int count=1; for (Relationship r : relationships) { relIndex.remove(r); r.delete(); if (count++ % 5 == 0) { tx.success(); tx.finish(); tx = db.beginTx(); } } tx.success(); tx.fin

Re: [Neo4j] how delete lots of relationship

2014-03-11 Thread Rita
Ok, so it will not increase the space with new insertion, I hope to see soon this after resolving with the delete, because also if I start a new Transaction every 50.000 elements I got the GC error. It seems that I need to close and reopen also the graph to avoid this one. Does it keep all in m

Re: [Neo4j] Tuning/ performance / predictability

2014-03-11 Thread Michael Hunger
Tom, I think it is an CPU issue, I only have this single change in my neo4j-shell file: EXTRA_JVM_ARGUMENTS="-Xmx6G -Xms6G -Xmn1G -XX:+UseConcMarkSweepGC -server" as I don't run against server but if you run against server the performance should be the same. I think on your hosted server (Dig

Re: [Neo4j] how delete lots of relationship

2014-03-11 Thread Michael Hunger
Existing node and relationship records that are freed will of course be reused (but only after a restart). So if you have a sliding window and delete nodes, then restart your db before inserting the new window and it will use the existing record blocks on disk. Cheers, Michael (michael)-

Re: [Neo4j] how delete lots of relationship

2014-03-11 Thread Rita
Thank you for the reply. Really cannot exist a way to reduce the disk space? I need it. So how could I do? I cannot reimport the data from the beginning because I have to populate the graph like a sliding window, I need to remove the older data l and then import newer ones. Does exist some way t

[Neo4j] Cost of adding of new slave to High Availability cluster

2014-03-11 Thread rihards 123
We are planning to use Neo4J for Big Data storage where data that we might want to store could reach hundreds of gigabytes once fully operational. Given that we have a web application which scales horizontally (there are 3 web nodes (slaves) and 1 analytic/main server (master)) and looking into a

Re: [Neo4j] how delete lots of relationship

2014-03-11 Thread Michael Hunger
Neo4j is block based, it will only mark blocks as not in use but won't release them on disk. So your deletion of relationships won't make the database smaller on disk. You're probably faster reimporting the data with the batch-inserter. Did you actually index the relationships? you have to bat

[Neo4j] how delete lots of relationship

2014-03-11 Thread Rita
Hi everybody I have populated my graph with nodes and relationships with the BatchInserter. Now I need to delete a part of relationships, to reduce the disk space of the graph. I have some problem. I am using the embedded version of Neo4j with Java. I am using the instruction indexRel.remov

Re: [Neo4j] Server startup using Bootstrapper

2014-03-11 Thread Michael Hunger
Then you still have version conflicts. Please check again. Cheers, Michael (michael)-[:SUPPORTS]->(YOU)-[:USE]->(Neo4j) Learn Online, Offline or Read a Book (in Deutsch) We're trading T-shirts for cool Graph Models Am 11.03.2014 um 07:37 schrieb Kalidhakani J : > I solved the versi

Re: [Neo4j] Tuning/ performance / predictability

2014-03-11 Thread Tom Zeppenfeldt
Hi Michael, could you perhaps share your neo4j-shell for me to learn from. I'm still very far away from the 1.6 secs that you were able to achieve. Best, Tom -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop re