Re: [Neo4j] Very slow cypher query, how to optimize it ?

2016-03-22 Thread Michael Azerhad
t(distinct > nodes(path)[2]) as f2, count(distinct nodes(path)[3]) as f3 > RETURN person._firstName + " " + person._lastName,f1,f2,f3 > > Michael > >> Am 16.03.2016 um 00:42 schrieb Michael Azerhad > <mailto:michael.azer...@gmail.com>>: >> >>

Re: [Neo4j] Very slow cypher query, how to optimize it ?

2016-03-15 Thread Michael Azerhad
shortestPath returns the right results. Without it, wrong results. -- 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...@googlegroups.com. For more options

Re: [Neo4j] Very slow cypher query, how to optimize it ?

2016-03-15 Thread Michael Azerhad
tively >>> >>> MATCH (person:Person) >>> OPTIONAL MATCH (person)-[:KNOWS]-(f1:Person)-[:KNOWS]-(f2:Person) >>> WITH person, count(distinct f1) as f1, count(distinct f2) as >>> f2,collect(distinct f2) as p2 >>> WITH person, f1,f2, r

Re: [Neo4j] Very slow cypher query, how to optimize it ?

2016-03-15 Thread Michael Azerhad
Yes, but it would never be counted as a friend of friend. > Le 16 mars 2016 à 00:28, Michael Hunger a > écrit : > > your shortest-path doesn't imply that it's not the same person. > > Robert would also be counted as direct friend. > > On Wed, Mar 16,

Re: [Neo4j] Very slow cypher query, how to optimize it ?

2016-03-15 Thread Michael Azerhad
RETURN person._firstName + " " + person._lastName, f1, f2, f3 > > > > On Tue, Mar 15, 2016 at 10:30 PM, Michael Azerhad > wrote: > >> Using Neo4J 2.1.5. >> >> Data: >> >>- 2000 Persons >>- KNOWS relationships between some of th

[Neo4j] Very slow cypher query, how to optimize it ?

2016-03-15 Thread Michael Azerhad
Using Neo4J 2.1.5. Data: - 2000 Persons - KNOWS relationships between some of them Goal of the query: For each person, display her fullname + amount of friends + amount of friends' friends + amount of friends' friends' friends. MATCH (person:Person) WITH person OPTIONAL MATCH pe

[Neo4j] http://m2.neo4j.org is currently down

2015-08-22 Thread Michael Azerhad
Seems that http://m2.neo4j.org is currently down. Just to signal it ;) Since I need it to make my project compile. Thanks, Michael -- 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, se

[Neo4j] [SDN 3.3.RC] Error adding element to spatial index

2015-03-16 Thread Michael Azerhad
Hi, I've just updated SDN from 3.2.2 to 3.3.RC. I'm testing it against neo4J 2.1.7 in *REST mode* and use this spatial plugin version: 0.13-neo4j-2.1.4 (plugin well installed on neo4J server). The whole works *except when inserting an object having a spatial index* like this: @Indexed(in

Re: [Neo4j] Spring Data Neo4j and Rest transactions handling.

2014-12-18 Thread Michael Azerhad
Cool ! :) Thanks Michael On Thursday, December 18, 2014 6:00:57 AM UTC+1, Michael Hunger wrote: > > Yes: See > http://jexp.de/blog/2014/12/spring-data-neo4j-improving-remoting-performance/ > > On Wed, Dec 17, 2014 at 5:16 PM, Michael Azerhad > wrote: >> >> Hi, &g

[Neo4j] Spring Data Neo4j and Rest transactions handling.

2014-12-17 Thread Michael Azerhad
Hi, Analyzing the evolution of the SDN github repo, I noticed this task: DATAGRAPH-253 REST Transaction support Is it about to be release in some days? Furthermore, is it possible to know if

[Neo4j] [SDN 3.2.1] / Is there a way to optimize this writing being too slow... ?

2014-11-14 Thread Michael Azerhad
Hi, I'm using SDN 3.2.1 and a dedicated instance Neo4j 2.1.5 database hosted at GrapheneDB. I have this use case in my app: User can participate to a meeting. It works, but too slow... => 10375 ms exactly => 10 seconds ! Here's the code snippet I exactly use, associated with comments: meeti

[Neo4j] How to efficiently model the cancellation of a participation?

2014-10-22 Thread Michael Azerhad
Hi, Let's suppose a node Called *Participation* (participation to a meeting). A user can participate, so this path is created:User<-[:PARTICIPATES]- *Participation*-[:TO]->Meeting Now, the user can cancel his participation. Should I add a label to Participation, let's called it *Cancelled

Re: [Neo4j] [Neo4J 2.1.2] / Cypher / Returning array property associated to an aggregate in one shot

2014-09-01 Thread michael azerhad
t the array into a collection as you already showed. > > Cheers, > > Michael > > > Am 08.08.2014 um 18:05 schrieb Michael Azerhad : > >> I've just updated the graphgist: http://gist.neo4j.org/?fc9672035185189521cf >> in order to better explain my issue. &g

Re: [Neo4j] Re: SDN 3.1.2 / withinDistance query using Cypher always returns 0 rows

2014-08-28 Thread Michael Azerhad
Thanks a lot Craig, your explanation is really helpful :) Le 26 août 2014 à 13:59, Craig Taverner a écrit : Hi Michael, If I well understand, by visualizing my actual graph, I notice that the > spatial graph is completely distinct from my domain graph; therefore using > the proxy index mode you

[Neo4j] Available Maven repository for Neo4j-Spatial

2014-08-25 Thread Michael Azerhad
Hi, I'm trying to retrieve neo4j spatial using maven repository but this one seems down: (it worked yesterday ..) https://raw.github.com/neo4j-contrib/m2/master/releases Does anybody know whether another repository contains the neo4j-spatial library? Thanks a lot, Michael -- You receive

Re: [Neo4j] Re: SDN 3.1.2 / withinDistance query using Cypher always returns 0 rows

2014-08-22 Thread michael azerhad
at the same time! :-) > > Glad it is working now. > > > On Fri, Aug 22, 2014 at 1:54 PM, Michael Azerhad > wrote: > Hi Craig, > > Thanks for this well detailed answer :) > > Finally, I found the trick to make the whole work without setting ANYTHING. >

Re: [Neo4j] Re: SDN 3.1.2 / withinDistance query using Cypher always returns 0 rows

2014-08-22 Thread michael azerhad
answer too many things at the same time! :-) > > Glad it is working now. > > > On Fri, Aug 22, 2014 at 1:54 PM, Michael Azerhad > wrote: > Hi Craig, > > Thanks for this well detailed answer :) > > Finally, I found the trick to make the whole work without settin

Re: [Neo4j] Re: SDN 3.1.2 / withinDistance query using Cypher always returns 0 rows

2014-08-22 Thread Michael Azerhad
ils of the testing I did there if you wish to read up on it. > http://stackoverflow.com/questions/17966722/neo4j-spatial-withindistance-cypher-query-returns-empty-while-rest-call-return > > > > On Thu, Aug 21, 2014 at 5:07 PM, Michael Azerhad > wrote: > >> I tried to add the

[Neo4j] Re: SDN 3.1.2 / withinDistance query using Cypher always returns 0 rows

2014-08-21 Thread Michael Azerhad
't allow me to use the Cypher query. Has the add a wrong syntax? Thanks On Thursday, August 21, 2014 4:40:55 PM UTC+2, Michael Azerhad wrote: > > Hi, > > I've just set the Neo4j Spatial on my server and using SDN 3.1.2 to create > my *wkt* index: > > @Indexed(index

[Neo4j] SDN 3.1.2 / withinDistance query using Cypher always returns 0 rows

2014-08-21 Thread Michael Azerhad
Hi, I've just set the Neo4j Spatial on my server and using SDN 3.1.2 to create my *wkt* index: @Indexed(indexName = "CarsLocation", indexType = IndexType.POINT) var wkt: String The whole works great and I can make queries involving "withinDistance" using the HTTP console like this: POST /db/

[Neo4j] Re: [SDN 3.1.2] / Random success of a relationship update

2014-08-14 Thread Michael Azerhad
there any explanation? ... Many thanks in advance, Michael On Thursday, August 14, 2014 2:32:01 AM UTC+2, Michael Azerhad wrote: > > Sorry, I made a typo: > > This Car Entity has a relationship like this: => This *User* > Entity has a relationship like this: >

[Neo4j] Re: [SDN 3.1.2] / Random success of a relationship update

2014-08-13 Thread Michael Azerhad
Sorry, I made a typo: This Car Entity has a relationship like this: => This *User* Entity has a relationship like this: On Thursday, August 14, 2014 2:30:46 AM UTC+2, Michael Azerhad wrote: > > Hi, > > Using SDN 3.1.2, I came across a weird behavior. > > Le

[Neo4j] [SDN 3.1.2] / Random success of a relationship update

2014-08-13 Thread Michael Azerhad
Hi, Using SDN 3.1.2, I came across a weird behavior. Let's take this example: I've got a User entity (@NodeEntity) that I create and save. This well works, I have my User in the graph. This Car Entity has a relationship like this: @RelatedTo(`type` = "KNOWS", direction = Direction.OUTGOING) v

Re: [Neo4j] [SDN 3.1.2] / tx.close() not immediately updating a node label (assumption)

2014-08-12 Thread Michael Azerhad
RE the transaction commit finished its job. Just my 2 cents ;) Michael On Tuesday, August 12, 2014 12:53:28 PM UTC+2, Michael Azerhad wrote: > > I forgot to point out that I'm using the REST mode, more relevant to a > potential async behaviour.., just for the info. >

Re: [Neo4j] [SDN 3.1.2] / tx.close() not immediately updating a node label (assumption)

2014-08-12 Thread Michael Azerhad
I forgot to point out that I'm using the REST mode, more relevant to a potential async behaviour.., just for the info. On Tuesday, August 12, 2014 12:48:08 PM UTC+2, Michael Azerhad wrote: > > I didn't try without SDN .. > I'm reading the actual code of SDN to detect

Re: [Neo4j] [SDN 3.1.2] / tx.close() not immediately updating a node label (assumption)

2014-08-12 Thread Michael Azerhad
Or is it quite possible? On Tuesday, August 12, 2014 12:39:01 PM UTC+2, Michael Hunger wrote: > > Would you be able to reproduce it without SDN, just plain neo and > ExecutionEngine? > > Sent from mobile device > > Am 12.08.2014 um 12:36 schrieb Michael Azerhad >:

[Neo4j] Re: [SDN 3.1.2] / tx.close() not immediately updating a node label (assumption)

2014-08-12 Thread Michael Azerhad
The title is not exact, I wanted to mean tx.success() instead of tx.close(). Thanks ;) On Tuesday, August 12, 2014 12:36:12 PM UTC+2, Michael Azerhad wrote: > > Hi, > > I'm using SDN 3.1.2 with Neo4j 2.1.2. > > I have this (simple) Akka code (a worker actor retrieving new

[Neo4j] [SDN 3.1.2] / tx.close() not immediately updating a node label (assumption)

2014-08-12 Thread Michael Azerhad
Hi, I'm using SDN 3.1.2 with Neo4j 2.1.2. I have this (simple) Akka code (a worker actor retrieving new events in a kind of loop to consume them): def receive = { case RetrieveNewEvents => val tx = graphDatabaseService.beginTx() //starts transaction try { val newEvents

Re: [Neo4j] Re: [Neo4J 2.1.2] / Cypher / Returning array property associated to an aggregate in one shot

2014-08-08 Thread Michael Azerhad
I've just updated the graphgist: http://gist.neo4j.org/?fc9672035185189521cf in order to better explain my issue. In case where someone already opened it.. On Friday, August 8, 2014 5:38:07 PM UTC+2, Michael Azerhad wrote: > > Hi Michael, > > What better than a GraphGist to s

Re: [Neo4j] Re: [Neo4J 2.1.2] / Cypher / Returning array property associated to an aggregate in one shot

2014-08-08 Thread Michael Azerhad
Hi Michael, What better than a GraphGist to show you the issue :) http://gist.neo4j.org/?fc9672035185189521cf So I would expect the output: MyMeetingTitle[1, 2, 3]2 rather than: MyMeetingTitle[1, 2, 3]1MyMeetingTitle[1, 2, 3]1 Do you see an obvious reason ? Many thanks, Michael -- You

Re: [Neo4j] Re: [Neo4J 2.1.2] / Cypher / Returning array property associated to an aggregate in one shot

2014-08-07 Thread Michael Azerhad
an you please share the full query? > > Just tried it, works perfectly fine. > > > > > On Thu, Aug 7, 2014 at 10:15 PM, Michael Azerhad > wrote: > >> I managed to do the trick with: >> >> RETURN extract(d IN user.ranks | d) as ranks, count(game.name) &

[Neo4j] Re: [Neo4J 2.1.2] / Cypher / Returning array property associated to an aggregate in one shot

2014-08-07 Thread Michael Azerhad
I managed to do the trick with: RETURN extract(d IN user.ranks | d) as ranks, count(game.name) => one shot :) Michael On Thursday, August 7, 2014 9:01:55 PM UTC+2, Michael Azerhad wrote: > > Hi, > > Let's suppose this Cypher query snippet: > > RETURN user.name, c

[Neo4j] [Neo4J 2.1.2] / Cypher / Returning array property associated to an aggregate in one shot

2014-08-07 Thread Michael Azerhad
Hi, Let's suppose this Cypher query snippet: RETURN user.name, count(game.name) => a user can have multiple video games No matter the example is, the important thing is that I can count names of user's video games associated with the user's name. Result would be: NAME

Re: [Neo4j] Deadlocks / What may a database restart do regarding indexes?

2014-08-03 Thread Michael Azerhad
at 7:01 PM, Michael Azerhad wrote: > Hi, > > I know my question is rather "abstract". > > But I've just come across the following issue: > > I have a running Neo4j 2.0.4. > I updated my source code (my application) on Heroku and restarted the > dynos.

[Neo4j] Deadlocks / What may a database restart do regarding indexes?

2014-08-03 Thread Michael Azerhad
Hi, I know my question is rather "abstract". But I've just come across the following issue: I have a running Neo4j 2.0.4. I updated my source code (my application) on Heroku and restarted the dynos. When dynos restarted, I was about to test my new features, but...a series of Deadlock excepti

Re: [Neo4j] Re: Returning items regarding the degree of separations between users.

2014-08-01 Thread Michael Azerhad
, Michael Azerhad wrote: > > I guess I found the reason of the slowness: > > If Person A is friend with B, and B is friend with C and C is friend with > A (cyclic), then the query returns duplicated cars. > I end up with 180 cars instead of 51 .. > -- You received this me

Re: [Neo4j] Re: Returning items regarding the degree of separations between users.

2014-08-01 Thread Michael Azerhad
I guess I found the reason of the slowness: If Person A is friend with B, and B is friend with C and C is friend with A (cyclic), then the query returns duplicated cars. I end up with 180 cars instead of 51 .. -- You received this message because you are subscribed to the Google Groups "Neo4

Re: [Neo4j] Re: Returning items regarding the degree of separations between users.

2014-08-01 Thread Michael Azerhad
> unwind cars as car > return car > order by car.name asc > > Michael > > > On Fri, Aug 1, 2014 at 9:41 AM, Michael Azerhad > wrote: > >> Hello Michael, >> >> Thanks for this really great detailed answer ! Like it :) >> >> However I have

Re: [Neo4j] Re: Returning items regarding the degree of separations between users.

2014-08-01 Thread Michael Azerhad
me asc Michael On Fri, Aug 1, 2014 at 9:41 AM, Michael Azerhad wrote: > Hello Michael, > > Thanks for this really great detailed answer ! Like it :) > > However I have a question : > > I do really prefer the last way (at the very bottom) using cypher and > expressions to l

Re: [Neo4j] Re: Returning items regarding the degree of separations between users.

2014-08-01 Thread Michael Azerhad
ly collect as few as you need. Like this: MATCH (loggedUser:Person{id: 123})-[:KNOWS]-(p1:Person) // iterate over all paths in the collection, extracting only the last node // but only taking the first 0..{limit} ones lazily from that collection WITH p1, [path in (p1)-[:SELLS]->(:Car) | las

[Neo4j] Re: Returning items regarding the degree of separations between users.

2014-07-31 Thread Michael Azerhad
rtant :) On Friday, August 1, 2014 4:24:41 AM UTC+2, Michael Azerhad wrote: > > Hi, > > I really think about making the following scenario optimal using Cypher > and Neo4j 2.X.X: > > Let's suppose this classic person knowledge pattern: > > (a:Person)-[:KNOWS]-(b:

[Neo4j] Returning items regarding the degree of separations between users.

2014-07-31 Thread Michael Azerhad
Hi, I really think about making the following scenario optimal using Cypher and Neo4j 2.X.X: Let's suppose this classic person knowledge pattern: (a:Person)-[:KNOWS]-(b:Person) Each person can sell his car by specifying its visibility according to the degree of separation of its choice. Exa

Re: [Neo4j] Is there any plan to improve SDN based on REST mode?

2014-07-14 Thread Michael Azerhad
that is runs on top of a Cypher based OGM which then uses a Cypher > connector (like the Neo4j-JDBC driver) to talk t an embedded or remote > Neo4j database. > > Unfortunately I haven't yet found the time to address that. > > Am 11.07.2014 um 01:23 schrieb Michael Azerhad >:

[Neo4j] Is there any plan to improve SDN based on REST mode?

2014-07-10 Thread Michael Azerhad
Hi, I well know that SDN is fully optimized for embedded database. I would like to know if there are any plan (or maybe already done?) to improve the way SDN manages @Fetch requests on lazy collections when using REST mode. Indeed, some use cases are very slow with it. A good workaround would

[Neo4j] [SDN 3.1.0] / Is it possible to do this inside the same transaction?

2014-07-10 Thread Michael Azerhad
Hi, My use case is pretty simple. I want to create a *Meeting* (represented by a node). Each Meeting accepts several *Participation*s (Participation represented by another node linked to Meeting) : class Meeting { @org.springframework.data.neo4j.annotation.Fet

[Neo4j] SDN 3.1.0 / Can I expect the internal to batch my insertions while using REST mode ?

2014-07-01 Thread Michael Azerhad
Hi, SDN has not really be optimized for REST mode, but for Embedded. My use case is simple: Storing 10 items in *one single roundtrip* from my server to my Neo4j server using REST. The conceptual code would be: Transaction tx = graphDatabaseService.beginTx(); for(int i=0; i < 10; i++) {

Re: [Neo4j] Re: Neo4J 2.1.2 / SDN 3.2.0.SNAPSHOT => Deadlocks while creating indexes

2014-06-29 Thread Michael Azerhad
s are created by an instance or not. > > Could you raise a jira issue for it? Thanks a lot Michael > > Sent from mobile device > > Am 29.06.2014 um 16:00 schrieb Michael Azerhad >: > > I just rollbacked to 2.0.3 and SDN 3.1.0.RELEASE and it well works. > I keep that for n

[Neo4j] Re: Neo4J 2.1.2 / SDN 3.2.0.SNAPSHOT => Deadlocks while creating indexes

2014-06-29 Thread Michael Azerhad
I just rollbacked to 2.0.3 and SDN 3.1.0.RELEASE and it well works. I keep that for now. On Sunday, June 29, 2014 2:52:07 PM UTC+2, Michael Azerhad wrote: > > I think I guess a possible reason : > > I use two dynos (Heroku server) in parallel: One for the Web requests, > and

[Neo4j] Re: Neo4J 2.1.2 / SDN 3.2.0.SNAPSHOT => Deadlocks while creating indexes

2014-06-29 Thread Michael Azerhad
just stuck :) Thanks a lot for your feedback. Michael On Sunday, June 29, 2014 2:17:53 PM UTC+2, Michael Azerhad wrote: > > Is it a possible reason => is THERE a possible reason (typo) > -- You received this message because you are subscribed to the Google Groups "Neo4j"

[Neo4j] Re: Neo4J 2.1.2 / SDN 3.2.0.SNAPSHOT => Deadlocks while creating indexes

2014-06-29 Thread Michael Azerhad
Is it a possible reason => is THERE a possible reason (typo) -- 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...@googlegroups.com. For more options, visi

[Neo4j] Neo4J 2.1.2 / SDN 3.2.0.SNAPSHOT => Deadlocks while creating indexes

2014-06-29 Thread Michael Azerhad
I've just updated my instance from 2.0.3 to 2.1.2 (using REST mode). I got this error at start time: 2014-06-29T12:08:17.189474+00:00 app[web.1]: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'neo4jMappingContext' defined in class org.springf

[Neo4j] Re: ImpermanentGraphDatabase and Future (threading) usage.

2014-06-10 Thread Michael Azerhad
Oh... It does not work with embedded graph. I tested again and without any future, the whole works. Can't figure out why... just stuck On Tuesday, June 10, 2014 3:00:45 PM UTC+2, Michael Azerhad wrote: > > I have this conceptual (Scala) code: > > > "should return the

[Neo4j] ImpermanentGraphDatabase and Future (threading) usage.

2014-06-10 Thread Michael Azerhad
I have this conceptual (Scala) code: "should return the total of meetings" in new MeetingContext { def totalCount(): Int = { val result = cypherQueryExecutor.iterator( """ MATCH (m:Meeting) RETURN COUNT(m) AS total""" , Map[String, AnyRef]() result.toList.head.asSca

Re: [Neo4j] Return results only if a specific node exists in a specific path

2014-06-06 Thread Michael Azerhad
RETURN user > > Leading to the same result as yours > Le 6 juin 2014 à 16:15, Michael Hunger > a écrit : > > But then 456 is not returned, or? > > Sent from mobile device > > Am 06.06.2014 um 14:42 schrieb Michael Azerhad >: > > Hi Michael :) > > G

Re: [Neo4j] Return results only if a specific node exists in a specific path

2014-06-06 Thread Michael Azerhad
14 à 16:15, Michael Hunger a écrit : But then 456 is not returned, or? Sent from mobile device Am 06.06.2014 um 14:42 schrieb Michael Azerhad : Hi Michael :) Great, works like a charm. I reduced it to: MATCH (:User {id: "456"})-[:PARTICIPATES]->(meeting:Meeting {id: "123&q

Re: [Neo4j] Return results only if a specific node exists in a specific path

2014-06-06 Thread Michael Azerhad
> > MATCH (:User {id: "456"})-[:PARTICIPATES]->(meeting:Meeting {id: "123"}) > MATCH (user)-[:PARTICIPATES]->(meeting) > RETURN user > > Sent from mobile device > > Am 06.06.2014 um 13:25 schrieb Michael Azerhad >: > > MATCH (user)-[:PARTIC

[Neo4j] Return results only if a specific node exists in a specific path

2014-06-06 Thread Michael Azerhad
MATCH (user)-[:PARTICIPATES]->(meeting:Meeting {id: "123"}) RETURN user This query returns all users participating to the Meeting `123`. Now I want to return all users participating to the Meeting `123` *ONLY if user `456` participates in it*. So concretely, if user1, user2 and user3 participat

Re: [Neo4j] START VS WHERE clauses performance

2014-06-05 Thread Michael Azerhad
was doing under the hood. However those should be the > same. However that isn't comparing START vs WHERE. > > > On Thu, Jun 5, 2014 at 5:49 PM, Michael Azerhad > wrote: > >> Using Neo4J >= 2.0.0. >> >> Can I assert that the following ways of doing

[Neo4j] START VS WHERE clauses performance

2014-06-05 Thread Michael Azerhad
Using Neo4J >= 2.0.0. Can I assert that the following ways of doing are similar in performance: MATCH (c: Car) WHERE c.id = "345" // id being indexed with CREATE INDEX ON :Car(id) RETURN c MATCH (c: Car {id: "345"}) RETURN c Let's imagine 100 Car nodes in the graph. Thanks a lo

Re: [Neo4j] Re: [Neo4j 2.0.3] - Cypher / WHERE NOT syntax with an AND expression

2014-05-21 Thread Michael Azerhad
a. :) Last time, the RC1 to release time was less than a month, though. I'd love to hear official estimates. Wes On Wed, May 21, 2014 at 7:18 PM, Michael Azerhad wrote: > Oh cool :) > > Do you know when should the 2.1 RELEASE emerge ? > I searched on the Net but in vain. > &

Re: [Neo4j] Re: [Neo4j 2.0.3] - Cypher / WHERE NOT syntax with an AND expression

2014-05-21 Thread Michael Azerhad
Oh cool :) Do you know when should the 2.1 RELEASE emerge ? I searched on the Net but in vain. Thanks a lot, Michael On Thursday, May 22, 2014 1:14:21 AM UTC+2, Wes Freeman wrote: > > It looks like it's fixed in 2.1-rc1. > > Wes > > On Wed, May 21, 2014 at 5

[Neo4j] Re: [Neo4j 2.0.3] - Cypher / WHERE NOT syntax with an AND expression

2014-05-21 Thread Michael Azerhad
ay 21, 2014 11:39:01 PM UTC+2, Michael Azerhad wrote: > > Even this case: > > MATCH (c:Car) > WHERE NOT(c.name = "Ferrari" AND 1=1) > RETURN c.name > > behaves like: > > MATCH (c:Car) > WHERE NOT(c.name = "Ferrari") AND NOT (1=1) //ex

[Neo4j] Re: [Neo4j 2.0.3] - Cypher / WHERE NOT syntax with an AND expression

2014-05-21 Thread Michael Azerhad
at an AND expression into a NOT expression doesn't work. On Wednesday, May 21, 2014 11:32:28 PM UTC+2, Michael Azerhad wrote: > > Hi everyone, > > My case is very simple. > > Let's assume three Car nodes: > > Car(name: "Ferrari") > Car(name: "Pors

[Neo4j] [Neo4j 2.0.3] - Cypher / WHERE NOT syntax with an AND expression

2014-05-21 Thread Michael Azerhad
Hi everyone, My case is very simple. Let's assume three Car nodes: Car(name: "Ferrari") Car(name: "Porsche") Car(name: "Aston Martin") And this request: MATCH (c:Car) RETURN c.name This of course well returns the three names. Now I want to execute this simple query using a WHERE NOT: MATCH

Re: [Neo4j] Re: SDN 3.0.0.RC1 / Is it normal that explicit fetch returns only the first collection's element?

2014-05-20 Thread Michael Azerhad
I'm pointing out that my _id variable does not represent the graphId but an entityId. On Tuesday, May 20, 2014 2:31:52 PM UTC+2, Michael Azerhad wrote: > > I also confirm that is the explanation :) > > Indeed, I had a bad hashcode implementation: > > override def hashC

Re: [Neo4j] Re: SDN 3.0.0.RC1 / Is it normal that explicit fetch returns only the first collection's element?

2014-05-20 Thread Michael Azerhad
gt;>>> As simple mode is detached from the db you should need to save it again >>>> to persist changes >>>> >>>> Mark could you create a unit test for that fetching/loading behavior? >>>> >>>> Thanks a lot >>>>

Re: [Neo4j] Should I label the node or indexed a property node in this case?

2014-05-02 Thread Michael Azerhad
el, has to load > their properties and check the property for the value on each node > > So in my experience the first approach is faster > > But still a global operation > > Sent from mobile device > > Am 02.05.2014 um 15:27 schrieb Michael Azerhad > > >: &

[Neo4j] Should I label the node or indexed a property node in this case?

2014-05-02 Thread Michael Azerhad
Suppose a "Notification" entity. To keep thing simple, let's assume a single property: "*readFlag*", that could be *true* if the notification was already read by the client, or *false* if it is new or not checked by the client yet. What is the difference in term of performance between those both

Re: [Neo4j] [SDN 3.0.2] / Potential bug with @Fetch annotation

2014-04-18 Thread Michael Azerhad
UTC+2, Michael Hunger wrote: > > Perhaps two are the same and so reduced to one in the set > > What happens if you add distinct to your cypher query? > > Sent from mobile device > > Am 18.04.2014 um 03:30 schrieb Michael Azerhad > > >: > > Hi, > > I k

[Neo4j] [SDN 3.0.2] / Potential bug with @Fetch annotation

2014-04-17 Thread Michael Azerhad
Hi, I know that SDN 3.X.X is not full tested yet but I come across this potential bug, and I would like to know if it is a "known" one: I have an acceptance test written using Specs2 (using a pretty DSL) containing this: meetingRepository.findAllParticipants(meetingId) must have size 3

[Neo4j] [SDN 3.0.X / How to consider a two subclasses of the same parent as the same node in the graph

2014-04-17 Thread Michael Azerhad
Hi, Basically, I have 3 Java classes: - B subclassing A - C subclassing A Since B and C have the same properties, I don't want to end up with two distinct types of node when I store them to the graph. Moreover, in the reality world, it targets the same entity. Otherwise, it would lead

[Neo4j] Re: SDN 3.0.0.RC1 / Is it normal that explicit fetch returns only the first collection's element?

2014-04-16 Thread Michael Azerhad
e.fetch(images) then images.size() == 1 (but all attributes are > populated). > @NodeEntity > public class SponsorNode { > > @RelatedTo(type="BRAND_IMAGE", direction=Direction.OUTGOING) > private Set images; > } > > Did you find the root of your prob

[Neo4j] Re: SDN 3.0.0.RC1 / Is it normal that explicit fetch returns only the first collection's element?

2014-04-16 Thread Michael Azerhad
e.fetch(images) then images.size() == 1 (but all attributes are > populated). > @NodeEntity > public class SponsorNode { > > @RelatedTo(type="BRAND_IMAGE", direction=Direction.OUTGOING) > private Set images; > } > > Did you find the root of your prob

Re: [Neo4j] May it be an SDN 3.0.0 bug ?

2014-04-01 Thread Michael Azerhad
. > > And I would probably have to update this > http://projects.spring.io/spring-data-neo4j/ too > > Best is probably to ask :) > > Cheers, > > Michael > > > > On Tue, Apr 1, 2014 at 12:24 PM, Michael Azerhad > > > wrote: > >> Ok good :)

Re: [Neo4j] May it be an SDN 3.0.0 bug ?

2014-04-01 Thread Michael Azerhad
el Hunger wrote: > > Right, so most probably a bug :) of an too eager implementation. > > > On Tue, Apr 1, 2014 at 11:58 AM, Michael Azerhad > > > wrote: > >> But.. it seems right to use the ManagedFieldAccessorSet for a Lazy >> collection, to fetch on access...so my

Re: [Neo4j] May it be an SDN 3.0.0 bug ?

2014-04-01 Thread Michael Azerhad
l detached when retrieved in Simple Mapping mode ? Thanks, Michael On Tuesday, April 1, 2014 11:51:32 AM UTC+2, Michael Azerhad wrote: > > Hum...no I don't think :) : > > @org.springframework.data.neo4j.annotation.RelatedTo(`type` = > "KNOWS",direction > = Direc

Re: [Neo4j] May it be an SDN 3.0.0 bug ?

2014-04-01 Thread Michael Azerhad
14 11:45:03 AM UTC+2, Michael Hunger wrote: > > I rather think that the managed field accessor set is too eager in what it > is doing :) > > There are no transactions over the wire. > > > On Tue, Apr 1, 2014 at 11:24 AM, Michael Azerhad > > > wrote: > >> Hi M

Re: [Neo4j] May it be an SDN 3.0.0 bug ?

2014-04-01 Thread Michael Azerhad
> the collection you get back? > It should be enough to set that collection variable to null to be skipped > when saving the parent. > > Perhaps you can share a test project that reproduces the issue in a test, > so we can look into it? Best in a JIRA issue so it doesn't ge

[Neo4j] May it be an SDN 3.0.0 bug ?

2014-03-31 Thread Michael Azerhad
I use the SDN 3.0.0 in production (I know this isn't the last version). Basically, I have a `Parent` class (@NodeEntity) having a relationship (Set[Child]) to its children, without no declared @Fetch on it. When I want to update the parent, I do: 1. Find the parent to update through the repo

[Neo4j] Re: Getting associated node's properties of nodes returned by AllShortestPaths function

2014-03-31 Thread Michael Azerhad
ot;MYname" }),(u2:People { name: "myfriend" }), > knowledgePath = allShortestPaths(u1-[:KNOWS*..4]-(u2)) WITH nodes( > knowledgePath) AS knowledgeNodes,u1,u2 MATCH users-[:ASSOCIATED_TO]->( > profile) WITH profile,knowledgeNodes,u1,u2 WITH extract(users IN > knowledg

[Neo4j] Getting associated node's properties of nodes returned by AllShortestPaths function

2014-03-31 Thread Michael Azerhad
Hi, Let's assume this beginning of Cypher query, aiming to retrieve all shortest paths (regarding knowledge) between two users: MATCH (u1:User {id: "1"}), (u2:User {id: "2"}), knowledgePath =allShortestPaths (u1-[:KNOWS*..4]-(u2)) Besides, each User is linked to a UserProfile node in the graph

Re: [Neo4j] SDN 3.0.0 / Updating a relationship fails

2014-03-14 Thread Michael Azerhad
>(Neo4j<http://neo4j.org> > ) > Learn Online <http://neo4j.org/learn/online_course>, > Offline<http://www.neo4j.org/events> or > Read a Book <http://graphdatabases.com> (in Deutsch<http://bit.ly/das-buch> > ) > We're trading T-shirts for

Re: [Neo4j] SDN 3.0.0 / Updating a relationship fails

2014-03-14 Thread Michael Azerhad
rg/events> or > Read a Book <http://graphdatabases.com> (in Deutsch<http://bit.ly/das-buch> > ) > We're trading T-shirts for cool Graph Models <http://bit.ly/graphgist> > > > > > > > > Am 14.03.2014 um 12:11 schrieb Michael Azerhad

Re: [Neo4j] SDN 3.0.0 / Updating a relationship fails

2014-03-14 Thread Michael Azerhad
t;http://neo4j.org/learn/online_course>, > Offline<http://www.neo4j.org/events> or > Read a Book <http://graphdatabases.com> (in Deutsch<http://bit.ly/das-buch> > ) > We're trading T-shirts for cool Graph Models <http://bit.ly/graphgist> > > > >

Re: [Neo4j] SDN 3.0.0 / Updating a relationship fails

2014-03-13 Thread Michael Azerhad
that the way I exposed above is correct. I will then search myself for the reason :) Thanks a lot :) On Friday, March 14, 2014 2:57:16 AM UTC+1, Michael Azerhad wrote: > > It sounds to be a deadlock: > > A deadlock scenario has been detected and avoided. This means that two ormore &g

Re: [Neo4j] SDN 3.0.0 / Updating a relationship fails

2014-03-13 Thread Michael Azerhad
o4jUserRepository.scala:15) On Friday, March 14, 2014 2:45:17 AM UTC+1, Michael Hunger wrote: > > How does it fail? > D > Am 14.03.2014 um 01:54 schrieb Michael Azerhad > > >: > > Hi, > > I try to update the relationship of a Node that is a collection. > Exam

Re: [Neo4j] Storing each events associated to a node as a relationship with this node

2014-03-13 Thread Michael Azerhad
http://www.neo4j.org/events> or > Read a Book <http://graphdatabases.com> (in Deutsch<http://bit.ly/das-buch> > ) > We're trading T-shirts for cool Graph Models <http://bit.ly/graphgist> > > > > > > > > Am 13.03.2014 um 14:38 schr

[Neo4j] SDN 3.0.0 / Updating a relationship fails

2014-03-13 Thread Michael Azerhad
Hi, I try to update the relationship of a Node that is a collection. Example: User has a list of Cars. Firstly, I saved the User with the Cars set beforehand, and the whole works with embedded mode and REST mode. Now, I want to add one Car to the list of this User. So I tried the following:

[Neo4j] Re: Storing each events associated to a node as a relationship with this node

2014-03-13 Thread Michael Azerhad
(event) Does the red traversal part could be impacted by a huge amount of events on the user node? or is it totally independent? Thanks a lot, I hope I'm more clear with this example. On Thursday, March 13, 2014 2:29:18 PM UTC+1, Michael Azerhad wrote: > > Hi, > > My question i

[Neo4j] Storing each events associated to a node as a relationship with this node

2014-03-13 Thread Michael Azerhad
Hi, My question is simple: I have a User node. Each time an action is made in my application concerning the User, (for instance an Authentication event (loginTimestamp, etc..)), I create the corresponding Event node and attached it to the User node. It's a kind of event store, with each even

Re: [Neo4j] SDN 3.0.0 / Labels as the default ?

2014-03-02 Thread Michael Azerhad
I've just tested the 3.0.0.RELEASE and it works great with labels, as I expected:) Without the "unexpected" workaround. Thanks! Michael On Sunday, March 2, 2014 11:40:50 AM UTC+1, Michael Azerhad wrote: > > I precise I'm using the SpringRestGraphDatabase. > >

Re: [Neo4j] SDN 3.0.0 / Labels as the default ?

2014-03-02 Thread Michael Azerhad
I precise I'm using the SpringRestGraphDatabase. On Sunday, March 2, 2014 11:38:21 AM UTC+1, Michael Azerhad wrote: > > I was talking about this case: > > https://groups.google.com/forum/#!topic/neo4j/67n5OiMOqps > > On Sunday, March 2, 2014 11:30:47 AM UTC+1, Michael Hung

Re: [Neo4j] SDN 3.0.0 / Labels as the default ?

2014-03-02 Thread Michael Azerhad
ies are based by default on labels, > not for fulltext or spatial. > > On Sun, Mar 2, 2014 at 10:54 AM, Michael Azerhad > > wrote: > > Currently, I use SDN 3.0.0 RC1. > > > > In this version, labels are not taking in account by default when using > > `@I

[Neo4j] SDN 3.0.0 / Labels as the default ?

2014-03-02 Thread Michael Azerhad
Currently, I use SDN 3.0.0 RC1. In this version, labels are not taking in account by default when using `@Indexed` on fields. Involving the need to create Dummy objects (ugly...) at the start of the application in order to avoid MissingIndexException(or similar) in case where data is retrieved

[Neo4j] SDN 3.0.0.RC1 / Providing a custom analyser for fulltext indexes

2014-02-07 Thread Michael Azerhad
Hi, In a node entity POJO, I've got this field: @Indexed(indexName = "titleSearch", indexType = IndexType.FULLTEXT) vartitle : String Is there a possibility to pass a custom analyser providing stopwords, like this one: https://lucene.apache.org/core/3_5_0/api/all/org/apache/lucene/analysis/f

[Neo4j] Re: REST Transactions, locking and isolation

2014-02-04 Thread Michael Azerhad
Nice question, I currently want to achieve a similar goal, when concurrent write operations are based on the same node property. Curious to hear about an efficient way. On Monday, February 3, 2014 2:07:21 PM UTC+1, Nigel Small wrote: > > Hi all > > We're starting to look in more detail at the new

[Neo4j] Re: SDN 3.0.0.RC1 / Is it normal that explicit fetch returns only the first collection's element?

2014-02-02 Thread Michael Azerhad
ions were added?* Thanks a lot On Sunday, February 2, 2014 3:29:45 PM UTC+1, Michael Azerhad wrote: > > I use Scala. > > In my class Meeting, I have this relation: > > @RelatedTo(`type` = "TO", direction = Direction.INCOMING) > var _participants: java.util.Set[Partic

[Neo4j] Re: SDN 3.0.0.RC1 / Is it normal that explicit fetch returns only the first collection's element?

2014-02-02 Thread Michael Azerhad
works I tested it in the same transaction and in distinct transaction. Am I missed something obvious? Thanks, Michael On Sunday, February 2, 2014 3:53:54 AM UTC+1, Michael Azerhad wrote: > > Hello, > > My question is pretty simple: > May it be a normal scenario when ne

[Neo4j] Re: SDN 3.0.0.RC1 / Is it normal that explicit fetch returns only the first collection's element?

2014-02-02 Thread Michael Azerhad
works I tested it in the same transaction and in distinct transaction. Am I missed something obvious? Thanks, Michael On Sunday, February 2, 2014 3:53:54 AM UTC+1, Michael Azerhad wrote: > > Hello, > > My question is pretty simple: > May it be a normal scenario when ne

Re: [Neo4j] SDN 3.0.0.RC1 / Is it normal that explicit fetch returns only the first collection's element?

2014-02-02 Thread Michael Azerhad
s a simple test crea On Sunday, February 2, 2014 7:19:36 AM UTC+1, Michael Hunger wrote: > > Sorry, can you give an example. I don't understand. > > template.fetch(entity.collection) should fetch the whole collections > content. > > On Sun, Feb 2, 2014 at 3

  1   2   >