Re: [Neo4j] Is neo4j periodically sending some information to neo4j servers?

2017-01-26 Thread frandro
or the client > (browser)? > > The backend sends usage data once a day. > The client has a cloud sync which might send data more often if you have > enabled it. > > Michael > > > > On Tue, Jan 24, 2017 at 5:02 AM, frandro > > wrote: > >> I'm

[Neo4j] Is neo4j periodically sending some information to neo4j servers?

2017-01-23 Thread frandro
I'm currently learning neo4j with version of 3.1.1. Neo4j seems to send some data about 1MB to somewhere in 10-minute intervals. Is this true? -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails fr

[Neo4j] Seems deletion of edges does not return the size which they take?

2015-05-07 Thread Frandro
I'm using neo4j 2.2.1. I deleted 243,748 unnecessary edges. But the problem is that the deletion does not return the size which the edges would take. The size of the following files are highly increased though I expected it'd be decreased. *-rw-r--r-- 1 root root 369 May 7 16:06 neostore

[Neo4j] batch within batch throws NotInTransactionException in 2.2.x

2015-05-05 Thread Frandro
I used to code in neo4j 2.1.x for batch within batch as following. However, the code throws a NotInTransactionException exception in neo4j 2.2.x. Is this code wrong from 2.2.x? Transaction tx = mGraphDb.beginTx(); try { while(itor.hasNext()) { // DO SOMETHING if (count % BATCH_SIZE_GDB == 0) {

[Neo4j] should Transaction.close() be called for batch jobs?

2014-10-05 Thread Frandro
The following code newly begins transaction each 1000 batch job. Is the following code correct? Do I have to invoke the tx.close() method each 1000 batch job in the middle? It seems there's no problem without calling the method. What are success() and close() for? It's confusing. Transaction t

Re: [Neo4j] Configure a path for storing logical logs?

2014-08-28 Thread Frandro
niversal -- and easy. > > > On 08/28/2014 06:29 PM, Frandro wrote: > > Logical logs are big files as you know. > > I'd like to separate them from the database file as follows since SSD > costs a lot. > > Graph DB main files are stored in an SSD partition. >

[Neo4j] Configure a path for storing logical logs?

2014-08-28 Thread Frandro
Logical logs are big files as you know. I'd like to separate them from the database file as follows since SSD costs a lot. Graph DB main files are stored in an SSD partition. Logical log files are stored in a HDD partition. Is it possible? -- You received this message because you are subscri

[Neo4j] An efficient way of finding a unique node with label and property?

2014-08-26 Thread Frandro
Let's assume that there's only a node. (params: node type, property, property's value) It seems that there's a method named findNodesByLabelAndProperty() in GraphDatabaseService. But the method returns Iterable, which implies we can get a collection by the method. I defined my own method for

[Neo4j] Can index be used for comparing size of values?

2014-08-18 Thread Frandro
Let's assume there's a property named age. Create an index on the property for fast retrieval. MATCH (user:User) where user.age=30 return user That should work. But I'd like to use comparison like this. MATCH (user:User) where user.age > 30 return user Is that supposed to work? It does not see

[Neo4j] Re: backup for embedded?

2014-08-09 Thread Frandro
Self-answer: I had to include the following jars. neo4j_backup, neo4j-cluster, neo4j-com, netty 2014년 8월 9일 토요일 오후 4시 9분 3초 UTC+9, Frandro 님의 말: > > According to http://docs.neo4j.org/chunked/stable/operations-backup.html, > it seems that neo4j is running as a server on a listening

[Neo4j] backup for embedded?

2014-08-09 Thread Frandro
According to http://docs.neo4j.org/chunked/stable/operations-backup.html, it seems that neo4j is running as a server on a listening port for backup. When I use it as an embedded database, there's no listening port. How come it says backup is possible for embedded? To my knowledge, embedded databa

[Neo4j] Question about communication method with embedded db and HA mode.

2014-07-29 Thread Frandro
I decided to use embedded mode for better performance rather than rest API. But the problem is that a process on another host can't communicate with neo4j since neo4j is not running on an IP. What's a recommended method of remote calls between the processes? And I have to think of extending it l

[Neo4j] Do I have to split relations of a node into domains?

2014-07-19 Thread Frandro
In my case, as the edges of a node grow the performance becomes worse. My use case includes traversing all neighbor nodes and their neighbor nodes. But the problem is that their relations of two types are growing. I've read the following board. https://groups.google.com/forum/#!searchin/neo4j/per

[Neo4j] How to traverse all the nodes within a specific depth using traversal framework?

2014-07-17 Thread Frandro
I'd like to traverse all the nodes within a specific depth using traversal framework. The start node (userNode) is uo. TraversalDescription friendsTraversal = graphDb.traversalDescription() .evaluator(Evaluators.excludeStartPosition()) .evaluator(Evaluators.toDepth

[Neo4j] How to traverse all the nodes within a specific depth using traversal framework?

2014-07-17 Thread Frandro
I'd like to traverse all the nodes within a specific depth using traverse traverse. The start node (userNode) is uo. TraversalDescription friendsTraversal = graphDb.traversalDescription() .evaluator(Evaluators.excludeStartPosition()) .evaluator(Evaluators.toDepth(4

[Neo4j] An efficient way of getting the count of friends?

2014-07-07 Thread Frandro
I need to get the count of friends between 2 and 4 depths for all nodes with the following query. String query = String.format("START src=node(%d) MATCH src-[:KNOWS*2..4]-dest WHERE NOT(src-[:KNOWS*0..1]-dest) RETURN count(DISTINCT id(dest)) as count_friends", nodeId); However, the problem is

Re: [Neo4j] a light query to check existing an edge between two nodes?

2014-07-06 Thread Frandro
> - use match not where > > START n1=node({id1}), n2=node({id2}) > > match (n1)-[:%s]-(n2) > > RETURN true > > Limit 1 > > Or rather for 2.x > > match (n1)-[:%s]-(n2) > > Where id(n1)={id1} and id(n2)={id2} > > RETURN true > > Limit 1 > > Se

[Neo4j] a light query to check existing an edge between two nodes?

2014-07-06 Thread Frandro
The following query is that I use to check existence of an edge between the two nodes, n1 and n2. It seems the query costs a lot. Is this optimized or not? Is there a better way to find it out? String query = String.format("START n1=node(%d), n2=node(%d) WHERE n1-[:%s]-n2 RETURN count(*) as co

[Neo4j] In production, neo4j should run in server mode?

2014-07-06 Thread Frandro
There's a recommendation from http://docs.neo4j.org/chunked/stable/configuration-jvm.html In production, Neo4j should run on a multi core/CPU platform with the JVM in server mode. I've been thinking of Neo4j running in embedded mode for better speed. Should I run it in server mode? -- You r

Re: [Neo4j] one transaction that does read & write?

2014-07-03 Thread Frandro
; > > if (!result) { > makeKnowsEdge(startNode, endNode); > tx.success(); > } > > should do it. you can't deadlock against yourself if you only create one > transaction ;) > > - Lasse > > > > On Thu, Jul 3, 2014 at 1:09 PM, Frandro > > wrote: >

[Neo4j] one transaction that does read & write?

2014-07-03 Thread Frandro
the parameters are a start node and end node. I'd like to check there's an edge named 'KNOWS' between them and connect them with the edge. It's written in my java code as follows. Transaction tx = graphDb.beginTx(); boolean result = checkIfKnowsEdgeExists(startNode, endNode)); tx.success(); tx.c

[Neo4j] I'd like to merge collections and get the nodes from them

2014-06-05 Thread Frandro
With the following query, I get two rows filled with nodes. START src=node(38), dest=node(24) MATCH p=src-[:KNOWS*1..6]-dest RETURN filter(x IN nodes(p) WHERE x <> src and x <> dest) [Node[39]{name:"KX"},Node[15]{name:"QQ"},Node[29]{name:"QP"},Node[26]{name:"ux"}] [Node[39]{name:"KX"},Node[15]{n

[Neo4j] How to exclude 1-depth nodes?

2014-05-28 Thread Frandro
I'd like to get connected nodes from 2-depths to 3-depths with KNOWS edges. The cypher query is like this. START src=node(100) MATCH src-[:KNOWS*2..3]-dest RETURN DISTINCT dest.name But the query results include 1-depth nodes since they actually can be 2-depth nodes in a connected graph. How to

[Neo4j] Is REST API slower than embedded DB?

2014-05-16 Thread Frandro
I'm comparing performance of cypher queries between REST API and embedded DB. The cypher querry is as follows. The query returns 2-depth friends. MATCH src-[:KNOWS*1..2]-dest WHERE src.name="me" RETURN DISTINCT dest.name I created about 1,000 threads and compared the results. Embedded DB uses

[Neo4j] Question about a heavy operation

2014-05-13 Thread frandro
I'm implementing an SNS service. A important feature I need is to get friend nodes within a specific depth. For example, friends can be 1-depth friends, 2-depth friends (including 1-depth friends) and 3-depth friends (including 1~2 depth friends). The operation can be heavy so the results should

[Neo4j] Question about a heavy operation

2014-05-13 Thread frandro
I'm implementing an SNS service. A important feature I need is to get friend nodes within a specific depth. For example, friends can be 1-depth friends, 2-depth friends and 3-depth friends. The operation can be heavy so the results should be split into multiple parts. For 2-depth friends, the p

[Neo4j] The way of accessing the value of an count() query in Java?

2014-05-11 Thread frandro
The cypher is as follows. MATCH src-[:KNOWS*1..3]-dest WHERE src.name = 'ux' RETURN COUNT(dest.name) AS COUNT The following is the result of ExecutionResult.dumpToString(). It's returned with ExecutionEngine. +---+ | COUNT | +---+ | 11| +---+ How do I access the value of an cou

[Neo4j] Do we have to buy a license for a commercial service?

2014-03-25 Thread frandro
I have a question about whether we have to buy a license of Neo4j or not for our software. We're going to develop an online service for a mobile app and web site. Which edition we can use does not matter. Community edition is enough. We just can't afford the price cause we will not make profits

[Neo4j] Accessing an embedded database being connected via http

2014-02-11 Thread frandro
I decided to use embedded database because its performance. But the problem is its not able to be accessed when it's being connected via http. I also want to connect to query in Cypher when the embedded database is being used by a process. Is there any way to do it? or is it impossible? --

[Neo4j] Server mode vs embedded database mode

2014-02-11 Thread frandro
I've heard that embedded database mode is faster than server mode accessed via REST API, right? There can be a case in which a great number of users try to simultaneously get data from DB and the database should be separated the main system because of lack of resources, which means neo4j is on

[Neo4j] Should I use JDK 7 x64 for neo4j x64?

2014-02-10 Thread frandro
Should I use JDK 7 x64 for neo4j x64? Is there any problem when I use JDK 7 x86 for neo4j x64? -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@google

[Neo4j] IOException is thrown when RestAPI.executeBatch() is called.

2014-02-10 Thread frandro
I'm trying to insert a number of nodes using Java REST binding. This example is from the BatchRestAPITest class in java-rest-binding-neo4j-rest-graphdb-2.0.0-M06. In the for loop, i is from 1 to 394. Within this scope, there's no problem. When it's increased to 395 and more, an Exception is thr

Re: [Neo4j] Is there any JDBC driver that supports batch processing?

2014-02-09 Thread frandro
j.org/chunked/milestone/rest-api-transactional.html > > > On 9 February 2014 00:37, frandro > wrote: > >> I need to insert a million nodes with a batch. The performance of using >> RestGraphDatabase is horrible. >> So I'm trying it with a JDBC driver from &g

[Neo4j] Is there any JDBC driver that supports batch processing?

2014-02-08 Thread frandro
I need to insert a million nodes with a batch. The performance of using RestGraphDatabase is horrible. So I'm trying it with a JDBC driver from http://www.neo4j.org/develop/tools/jdbc. It seems the JDBC driver does not support batch processing. Neo4jDatabaseMetaData.supportsBatchUpdates() retu

[Neo4j] The result returned from executeQuery() via JDBC is strange.

2014-02-08 Thread frandro
I just made a node in Cypher like as CREATE (S:User {name:"S"}) I'd like to get the name by querying with JDBC. The printed result is name: {"name":"S"}. Why isn't it name: S? What's wrong? Thanks in advance. The code is as follows. driver=new Driver(); prop=new Properties(); try { co

[Neo4j] Difference between jdbc and RestCypherQueryEngine?

2014-02-07 Thread frandro
I'd like to do jobs in Java so I've used an RestCypherQueryEngine instance. My instance of neo4j is a server which has an IP to connect to. What's the difference between using jdbc and an RestCypherQueryEngine instance? Thanks in advance. -- You received this message because you are subscribe

Re: [Neo4j] It takes so long time to create nodes to do stress test

2014-01-21 Thread frandro
label = DynamicLabel.label(type); > > try (Transaction tx = graphDB.beginTx()) > > { > for (String value : values) { > Node createdNode = graphDB.createNode(label); > > > > createdNode.setProperty(key, value); > >

[Neo4j] It takes so long time to create nodes to do stress test

2014-01-19 Thread frandro
Dear all, I'm just testing much work how much Neo4j can endure. I'm planning to make 1 million nodes and relations more than the nodes. I coded a method that creates a node as following and a caller to it in a for loop to create nodes as many as specified in the for loop. The problem is that i