Re: [Neo4j] SDN Persisting Nodes in Single Call

2014-03-27 Thread Michael Hunger
Sadly neither It uses core java api methods to do it No time to rewrite sdn to run on cypher It depends on the OtherNodebut sdn takes care that there is only one rel between the instances. Sent from mobile device Am 27.03.2014 um 22:27 schrieb Mike Holdsworth : > When an @NodeEntity has rela

Re: [Neo4j] resultDataContents in non transactional Cypher endpoint

2014-03-27 Thread Michael Hunger
Because it was only added to the tx-endpoint which has a condensed format to allow some other formats too. The existing cypher endpoint won't be maintained in the long term and removed at some point. On Fri, Mar 28, 2014 at 7:17 AM, Javier de la Rosa wrote: > Hi, > > I was just wondering why I

Re: [Neo4j] Re: Example Spring style Unmanaged Extension

2014-03-27 Thread Pallavi Mukherjee
Thanks for reply Michael, Yes i have added all dependencies into server plugin with all config into neo4j-server.properties filr. Could plz share link from where i can have full example of unmanaged extension for spring with all config and testcases. Thanks, Pallavi On Thu, Mar 27, 2014 at 5:3

[Neo4j] resultDataContents in non transactional Cypher endpoint

2014-03-27 Thread Javier de la Rosa
Hi, I was just wondering why I can't use the parameter "resultDataContents" in the regular Cypher endpoint. Cheers! -- Javier de la Rosa http://versae.es -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiv

[Neo4j] Re: Why is Neo4j slower(totally dead) with many nodes and relationships in lower specification of pc/notebook while MySQL is not?

2014-03-27 Thread Rio Eduardo
Thank you so much for the reply Lundin. I really apreciate it. Okay, yesterday I just tested my experiment again. And the result was not what I imagined and expected before. Okay, before I tested *1M* users, I reduced the number of users into *1000* users and tested it not in my social network

Re: [Neo4j] neo4j server tomcat

2014-03-27 Thread Michael Hunger
Neo4j server uses an embedded jetty. But afaik you are already using Neo4j (embedded) within tomcat with Vaadin and SDN ? What do you need the server for? Just the visualization? On Thu, Mar 27, 2014 at 9:02 PM, gg ricker wrote: > Hi, > I feel this question has been asked before but

[Neo4j] neo4j server tomcat

2014-03-27 Thread gg ricker
Hi, I feel this question has been asked before but I use a hosting service that works well for web apps in Tomcat. I have a small Vaadin/SDN/Neo4j app that works pretty well(grad project). Recently I have been trying to use Neo4j with the data from http://www.tycho.pitt.edu. I created

[Neo4j] Re: Gremlin Plugin - Extremely slow on Neo4j 2.0.1

2014-03-27 Thread Effy Teva
Are there no Neo4j Gremlin REST users? It's hard for me to believe this issue isn't important. Anyone from the Neo4j Team could care to comment? Thanks Effy On Monday, March 24, 2014 4:18:12 PM UTC+2, Effy Teva wrote: > > Hi, > > I've made some tests today, and found out Neo4j 2.0.1 Gremlin Plug

[Neo4j] Re: Cypher "in" operator weirdness...

2014-03-27 Thread Wes Freeman
The WHERE following the OPTIONAL MATCH is executed along with it, so if it doesn't ever return true, it only affects the OPTIONAL piece, and you'll get all of the service nodes continuing on to the next part of the query. You probably need to split it up with WITH to get the behavior you want: STA

[Neo4j] Cypher "in" operator weirdness...

2014-03-27 Thread Alan Robertson
Here's a sample Cypher query that I'm having trouble with... START service=node:ProcessNode('*:*') OPTIONAL MATCH service<-[:monitoring]->monitor WHERE "service" in service.roles WITH service, monitor, count(monitor) as moncount

[Neo4j] SDN Persisting Nodes in Single Call

2014-03-27 Thread Mike Holdsworth
When an @NodeEntity has relationships to other nodes, is it written as a single cypher statement or are they persisted as separate statements? In this example, assuming the createdBy is a new node, is createdBy created when SomeClass is saved in the same cypher statement? If it’s a single st

[Neo4j] Re: Why is Neo4j slower(totally dead) with many nodes and relationships in lower specification of pc/notebook while MySQL is not?

2014-03-27 Thread Lundin
Rio, any version will do. They can all handle million nodes on common hardware, no magic at all. When hundred of millions of billions then we might need to look into specfication more in detail. But in that case with that kind of data there are other bottlencks for a social network or any web a

Re: [Neo4j] Version 2.1.0-M01 CSV Import Index Lookup

2014-03-27 Thread Michel Ávila
This is why i was using MATCH, instead of MERGE. Because i created all nodes before, and only then the relationships file was loaded. I tested both commands outside the LOAD CSV, and they used the index. It's only inside the LOAD CSV context that MATCH doesn't behave as it's supposed to. Weird stuf

Re: [Neo4j] Intermittently getting " Invalid epoch", and then all the writes to DB start failing

2014-03-27 Thread Virat Gohil
Hi Jacob, Thank you very much for the in-depth explanation. I think the issue was that we configured the standalone instance as slave only and it cannot become master. Thus the cluster goes into a state of infinite re-election till the slave (standalone) is also not available (once we re-start the

[Neo4j] Re: Why is Neo4j slower(totally dead) with many nodes and relationships in lower specification of pc/notebook while MySQL is not?

2014-03-27 Thread Rio Eduardo
I just knew about memory allocation and just read Server Performance Tuning of Neo4j. neo4j.properties: # Default values for the low-level graph engine #neostore.nodestore.db.mapped_memory=25M #neostore.relationshipstore.db.mapped_memory=50M #neostore.propertystore.db.mapped_memory=90M #neostore.

Re: [Neo4j] REST server hangs if server.webserver.maxthreads is too low- how many are needed?

2014-03-27 Thread Michael Hunger
Something else I notice is: only in the small_32 dump there are actually acceptors listening for incoming connections (in blocked state) and in _all_ threaddumps there is no piece of Neo4j (package org.neo4j.* actually doing any work) I found one issue with jetty that seems to be related but is r

Re: [Neo4j] REST server hangs if server.webserver.maxthreads is too low- how many are needed?

2014-03-27 Thread Joel Welling
Here's an interesting tidbit: on the small (16*2 core) machine, the server hangs at 32 or 33 threads but does not hang at 64. On Thursday, March 27, 2014 11:14:49 AM UTC-4, Joel Welling wrote: > > I have to amend my previous statement a bit- on the smaller front end > machine (SGI UV, 24GB, 16 c

Re: [Neo4j] REST server hangs if server.webserver.maxthreads is too low- how many are needed?

2014-03-27 Thread Joel Welling
I have to amend my previous statement a bit- on the smaller front end machine (SGI UV, 24GB, 16 cores*2 for hyperthreading) the server runs fine at 320 threads but ***hangs at 32***. I've attached jstack dumps for the server on the big machine at 32 threads (jstack_out3) and in the hung state o

Re: [Neo4j] Working with lucene indexes via cypher, through java (neo4j 2.0.1)

2014-03-27 Thread Michael Hunger
Hi, I think this behavior is clearly related to APIs. As fulltext search etc. will be integrated into cypher directly in a future version of Neo4j, I'm not sure how much work we will be able to do in this area. You might want to raise this as a github issue about this API issue. I had those nasty

Re: [Neo4j] cypher traversal to same node

2014-03-27 Thread Alex Frieden
Yep, thats it, thanks guys! On Thu, Mar 27, 2014 at 10:43 AM, Michael Hunger < michael.hun...@neotechnology.com> wrote: > You share had the create statement as executed statement not as create > setup. > > You mean like this? > > http://console.neo4j.org/r/69ak2s > > You had the same relationshi

Re: [Neo4j] cypher traversal to same node

2014-03-27 Thread Michael Hunger
You share had the create statement as executed statement not as create setup. You mean like this? http://console.neo4j.org/r/69ak2s You had the same relationship (a)-[:KNOWS]-(b) in there twice which doesn't return anything. A path in cypher can only consist of paths with different relationships

Re: [Neo4j] REST server hangs if server.webserver.maxthreads is too low- how many are needed?

2014-03-27 Thread Joel Welling
Hi folks- First, thanks for your attention! Yes, the thread dumps were taken in the hung condition. There was definitely a request pending, at least as far as the 'curl' command was concerned. I've tried with 32 threads and seen the same result, but I'll repeat the experiment and provide t

Re: [Neo4j] cypher traversal to same node

2014-03-27 Thread Wes Freeman
I think you're looking for something closer to this: MATCH (c:City)--(a:Person)--(b:Person),(a)--(d:Person) RETURN a,b,c,d You don't actually have two connections between (a) and (b). In order to make the query useful, you probably need a starting point like: where d.name = "someone".j Wes On

Re: [Neo4j] Version 2.1.0-M01 CSV Import Index Lookup

2014-03-27 Thread Michael Hunger
Actually MATCH should work as well, could your raise a github issue about it? http://github.com/neo4j/neo4j/issues The difference is: MERGE is a get-or-create whereas MATCH is a lookup only. So MERGE does more, but at least it uses the index/constraint as it should. See the cypher docs: http://do

Re: [Neo4j] cypher traversal to same node

2014-03-27 Thread Alex Frieden
give that a shot http://console.neo4j.org/r/3wgnza On Thu, Mar 27, 2014 at 10:13 AM, Wes Freeman wrote: > What's (d) supposed to be? > > Can you set up an example graph in console.neo4j.org, or a graphgist so > we can run queries against it. > > Wes > > On Thu, Mar 27, 2014 at 9:50 AM, Alex Fri

Re: [Neo4j] Hoping for some help with a query...

2014-03-27 Thread Michael Hunger
Hi Peter, I think it makes most sense to share a sample graph of your structure? Just some notes about things that came to my mind. 1. I would add a direction here: match p = (c:Card)-[r:describes*]->(c1: Card) 2. might be too much, as you kinda check that none of those cards was a created one (

[Neo4j] Working with lucene indexes via cypher, through java (neo4j 2.0.1)

2014-03-27 Thread M. David Allen
I'm attempting to implement a quite simple fuzzy match using a lucene index. I'm running into multiple issues surrounding exceptions thrown by Lucene, and how neo4j interacts with them. Sometimes, lucene will throw mysterious NullPointerExceptions which propogate all the way up. These are qu

Re: [Neo4j] cypher traversal to same node

2014-03-27 Thread Wes Freeman
What's (d) supposed to be? Can you set up an example graph in console.neo4j.org, or a graphgist so we can run queries against it. Wes On Thu, Mar 27, 2014 at 9:50 AM, Alex Frieden wrote: > So I have a person ndoe and I want to know who is a friend of a friend > from a city > > So what this loo

Re: [Neo4j] Version 2.1.0-M01 CSV Import Index Lookup

2014-03-27 Thread Michel Ávila
Yes Michael, that definitely did the trick! Works like a charm now. Can you explain the differences between MERGE and MATCH, in this case, so i can choose between them consciously next time? Thank you again! Em quinta-feira, 27 de março de 2014 10h11min00s UTC-3, Michael Hunger escreveu: > > Ca

[Neo4j] cypher traversal to same node

2014-03-27 Thread Alex Frieden
So I have a person ndoe and I want to know who is a friend of a friend from a city So what this looks like is: *MATCH (c:City)--(a:Person)--(b:Person)--(a)--(d:Person) RETURN a,b,c,d* So what this is modeling is a person (a) who has three relationships: b,c,d However, when I run this query, i

Re: [Neo4j] Version 2.1.0-M01 CSV Import Index Lookup

2014-03-27 Thread Michael Hunger
Can you try to use MERGE instead of MATCH in your relationship-statement that should definitely use the index. On Wed, Mar 26, 2014 at 10:13 PM, Michel Ávila < michel.leite.de.av...@gmail.com> wrote: > I have 3 files, containing a set of companies, persons and the > relationships between these e

Re: [Neo4j] Re: Example Spring style Unmanaged Extension

2014-03-27 Thread Michael Hunger
Did you add all the dependend jars to server/plugins? Sent from mobile device Am 27.03.2014 um 12:45 schrieb PM : > Hi Michael Hunger, > > I m also facing same issue . i made changes into neo4j server.property file > but still getting same issue. > > > > > Thanks in advance > > On Thursda

[Neo4j] Re: Example Spring style Unmanaged Extension

2014-03-27 Thread PM
Hi Michael Hunger, I m also facing same issue . i made changes into neo4j server.property file but still getting same issue. Thanks in advance On Thursday, 16 January 2014 23:56:58 UTC+5:30, Theo Briscoe wrote: > > I am trying to write a Neo4j unmanaged extension that loads spring context >

Re: [Neo4j] m2.neo4j.org is not accessible

2014-03-27 Thread Aman Gupta
Thanks alot Alistair... cheers :) On Thursday, 27 March 2014 16:48:58 UTC+5:30, Alistair Jones wrote: > > Hi Aman, > > m2.neo4j.org is now back up. > > On 27 March 2014 11:01, Aman Gupta > > wrote: > >> Ok.. do you knowledge about any other artifactory/repository maintained >> for neo4j ? which

Re: [Neo4j] m2.neo4j.org is not accessible

2014-03-27 Thread Alistair Jones
Hi Aman, m2.neo4j.org is now back up. On 27 March 2014 11:01, Aman Gupta wrote: > Ok.. do you knowledge about any other artifactory/repository maintained > for neo4j ? which can be used for maven settings ? > As Sukaant says, all the public releases are pushed to maven central, so generally yo

Re: [Neo4j] m2.neo4j.org is not accessible

2014-03-27 Thread Sukaant Chaudhary
Hi Aman, You can get it at Maven Central: http://repo1.maven.org/maven2 -Sukaant Chaudhary [image: linkedinbutton] On Thu, Mar 27, 2014 at 4:31 PM, Aman Gupta wrote: > Ok.. do you knowledge about any other artifactory/repository maint

Re: [Neo4j] m2.neo4j.org is not accessible

2014-03-27 Thread Aman Gupta
Ok.. do you knowledge about any other artifactory/repository maintained for neo4j ? which can be used for maven settings ? Thanks for your response. - Aman On Thursday, 27 March 2014 16:23:22 UTC+5:30, Alistair Jones wrote: > > Hi Aman, that maven repository is having problems. I'm looking at i

Re: [Neo4j] m2.neo4j.org is not accessible

2014-03-27 Thread Alistair Jones
Hi Aman, that maven repository is having problems. I'm looking at it now. Will post back when we know more. -Alistair On 27 March 2014 08:00, Aman Gupta wrote: > Hi, > > Today I am not able to access m2.neo4j.org repository. My maven build > showing following warnings: > > [WARNING] Could not

Re: [Neo4j] Intermittently getting " Invalid epoch", and then all the writes to DB start failing

2014-03-27 Thread Jacob Hansson
Invalid epoch means the server recieved a message from an older (no longer valid) logical time epoch in the cluster, which, less cryptically, generally there has been an election and the new master (possibly the same instance as the previous master) recieved a message that was addressed to the old

[Neo4j] m2.neo4j.org is not accessible

2014-03-27 Thread Aman Gupta
Hi, Today I am not able to access m2.neo4j.org repository. My maven build showing following warnings: [WARNING] Could not transfer metadata > org.springframework:spring-context/maven-metadata.xml from/to > neo4j-release-repository > (http://m2.neo4j.org/content/repositories/releases/): Failed

[Neo4j] Hoping for some help with a query...

2014-03-27 Thread Peter Whitfield
I have a graph where users can create cards represented by (:User)-[:created]->(:Card), and users can collected other user's cards which results in a clone of the original card: (:User)-[:collected]->(clone:Card)-[:describes]->(original:Card). Users can collect 'collected' cards, so we can end u

Re: [Neo4j] REST server hangs if server.webserver.maxthreads is too low- how many are needed?

2014-03-27 Thread Michael Hunger
Joel, sorry, I went back and re-read your original e-mail. So you said it hangs whenever you set the maxthreads config to a fixed value? What I'm confused about is, that the threaddump you shared doesn't show any blocked / waiting thread handling that request at all. Did you take the threaddump wh