[Neo4j] SDN 2.3.3 / Does it manage transaction for REST mode with @Transaction?

2013-12-20 Thread Michael Azerhad
Previously, SDN could manage transaction with the @Transaction only for the embedded mode. Indeed, we had to manually create neo4j batches to manage them instead. Does SDN version 2.3.3 manage them ? Thanks a lot, Michael -- You received this message because you are subscribed to the

[Neo4j] Return all events that occurred between two dates, with hours included

2014-01-22 Thread Michael Azerhad
Hi, I would like to know what would be a best practice to deal with range dates. So, here my use case: I have a lot of events in my graph, I want to return all events that occurred between two dates (format /MM/DD HH:MM). Currently, I structured each Event node with a startAt indexed

[Neo4j] Return all events that occurred between two dates.

2014-01-22 Thread Michael Azerhad
Hi, I would like to know what would be a good practice to deal with range dates in a graph database. So, here my use case: I have a lot of events in my graph, I want to return all events that occurred between two dates (format /MM/DD HH:MM). Currently, I structured each Event node with a

Re: [Neo4j] Return all events that occurred between two dates, with hours included

2014-01-22 Thread Michael Azerhad
Hi Alex, I'm especially interested in the theory of this practice. On Thursday, January 23, 2014 3:07:11 AM UTC+1, Alex Frieden wrote: got a graphgist or console? On Wed, Jan 22, 2014 at 9:04 PM, Michael Azerhad michael...@gmail.comjavascript: wrote: Hi, I would like to know what

[Neo4j] Re: Jars configuration for Neo4j server 2.0 (REST mode)

2014-01-26 Thread Michael Azerhad
According to github links concerning each jar, it should be the case, that's why I ask the question. On Sunday, January 26, 2014 1:43:22 PM UTC+1, Michael Azerhad wrote: Hi, I want to use the neo4j server version 2.0. The jars I combine (using SBT) are the following: org.neo4j % neo4j

[Neo4j] Re: Jars configuration for Neo4j server 2.0 (REST mode)

2014-01-26 Thread Michael Azerhad
Sorry, I forgot to precise one important dependency above: org.neo4j % neo4j-rest-graphdb % 2.0.0 On Sunday, January 26, 2014 1:45:23 PM UTC+1, Michael Azerhad wrote: According to github links concerning each jar, it should be the case, that's why I ask the question. On Sunday, January

Re: [Neo4j] Re: Jars configuration for Neo4j server 2.0 (REST mode)

2014-01-26 Thread Michael Azerhad
Framework 2.2.0 to Play 2.2.1 ... Anyway, thanks a lot Michael :) On Sunday, January 26, 2014 2:19:07 PM UTC+1, Michael Hunger wrote: Looks as if the jersey 1.9 dependency is missing. On Sun, Jan 26, 2014 at 1:45 PM, Michael Azerhad michael...@gmail.comjavascript: wrote: According

[Neo4j] Re: Labels IN SDN 3.0.0 milestones?

2014-01-27 Thread Michael Azerhad
I would like to drop the @Indexed annotation on my field, in favor of the auto indexing from a label like this Cypher query would bring: CREATE INDEX ON :User(_id) On Monday, January 27, 2014 8:50:07 PM UTC+1, Michael Azerhad wrote: Currently I use SDN 3.0.0M1 for the domain objects mapping

Re: [Neo4j] Index vs Labels comprehension

2014-01-27 Thread Michael Azerhad
No problem, thanks :) -- 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, visit

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

2014-02-01 Thread Michael Azerhad
Hello, My question is pretty simple: May it be a normal scenario when neo4jTemplate.fetch returns ALWAYS the first collection's element? (concerning a @RelatedTo collection's field without any @Fetch annotation) On the contrary, when @Fetch is placed, the whole collection is well

[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
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 neo4jTemplate.fetch returns ALWAYS the first collection's element

[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
?* 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[Participation] = _ Participation is another node entity, linked

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

2014-03-02 Thread Michael Azerhad
, Mar 2, 2014 at 10:54 AM, Michael Azerhad michael...@gmail.com javascript: wrote: 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

[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

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

2014-03-13 Thread Michael Azerhad
) 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 is simple: I have a User

[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:

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

2014-03-13 Thread Michael Azerhad
for cool Graph Models http://bit.ly/graphgist Am 13.03.2014 um 14:38 schrieb Michael Azerhad michael...@gmail.comjavascript: : More specifically, could it impact some traversal from the nodes independent of the node events? For instance: (event) - (user

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

2014-03-13 Thread Michael Azerhad
UTC+1, Michael Hunger wrote: How does it fail? D Am 14.03.2014 um 01:54 schrieb Michael Azerhad michael...@gmail.comjavascript: : 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

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

2014-03-13 Thread Michael Azerhad
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 transactions , which were holding

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

2014-03-14 Thread Michael Azerhad
://graphdatabases.com (in Deutschhttp://bit.ly/das-buch ) We're trading T-shirts for cool Graph Models http://bit.ly/graphgist Am 14.03.2014 um 03:18 schrieb Michael Azerhad michael...@gmail.comjavascript: : I've just fixed the deadlock: I was missing the tx.close() statement

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

2014-03-14 Thread Michael Azerhad
Models http://bit.ly/graphgist Am 14.03.2014 um 12:11 schrieb Michael Azerhad michael...@gmail.comjavascript: : Hi Michael, The whole works :) except one improvement I want to make: The deadlock was caused due to multiple threads (Akka Actor) updating the same Node or its

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

2014-03-14 Thread Michael Azerhad
or Read a Book http://graphdatabases.com (in Deutschhttp://bit.ly/das-buch ) We're trading T-shirts for cool Graph Models http://bit.ly/graphgist Am 14.03.2014 um 12:46 schrieb Michael Azerhad michael...@gmail.comjavascript: : The trick is I can't know in advance which nodes I have

[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

[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

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

2014-04-01 Thread Michael Azerhad
, 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 michael...@gmail.comjavascript: wrote: Hi Michael, Indeed, you're right... the type

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

2014-04-01 Thread Michael Azerhad
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 = Direction.BOTH) var knowledge: java.util.Set[User] = new

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

2014-04-01 Thread Michael Azerhad
, so most probably a bug :) of an too eager implementation. On Tue, Apr 1, 2014 at 11:58 AM, Michael Azerhad michael...@gmail.comjavascript: wrote: But.. it seems right to use the ManagedFieldAccessorSet for a Lazy collection, to fetch on access...so my post above is a nonsense :) What I

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

2014-04-01 Thread Michael Azerhad
://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 michael...@gmail.comjavascript: wrote: Ok good :) Last question: What is the best way to be warned about the future evolution of SDN, releases, and especially

[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
). @NodeEntity public class SponsorNode { @RelatedTo(type=BRAND_IMAGE, direction=Direction.OUTGOING) private SetImageNode images; } Did you find the root of your problem Michael? On Sunday, 2 February 2014 22:27:56 UTC, Michael Azerhad wrote: Maybe it's an incompatibility with Scala

[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] 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] 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
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 Sent from mobile device Am 17.04.2014 um 02:31 schrieb Michael Azerhad michael...@gmail.com: Oh, so the problem should

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 hashCode(): Int = { if (_id

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

2014-05-21 Thread Michael Azerhad
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: Porsche) Car(name: Aston Martin) And this request: MATCH (c:Car) RETURN c.name

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:48 PM, Michael Azerhad michael

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

2014-05-21 Thread Michael Azerhad
. No idea. :) 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 michael.azer...@gmail.comwrote: Oh cool :) Do you know when should the 2.1 RELEASE emerge ? I searched on the Net but in vain

[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 lot,

[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 participates

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

2014-06-06 Thread Michael Azerhad
})-[: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 michael...@gmail.com javascript:: MATCH (user)-[:PARTICIPATES]-(meeting:Meeting {id: 123}) RETURN user This query returns all

[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 total of meetings in new

[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

[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, visit

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

2014-06-29 Thread Michael Azerhad
:) 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 group. To unsubscribe from this group

[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 one acting

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

2014-06-29 Thread Michael Azerhad
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 michael...@gmail.com javascript:: 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

[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 {

[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

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

2014-07-14 Thread Michael Azerhad
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 michael...@gmail.com javascript:: Hi, I well know that SDN

[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.

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

2014-07-31 Thread Michael Azerhad
: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:Person) Each person can sell his car by specifying its visibility according

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

2014-08-01 Thread Michael Azerhad
, Michael Azerhad michael.azer...@gmail.com wrote: Fix of my query above, I missed to specify the logged user node: MATCH (d:Degree {id: 1})-[:TARGET_TO]-(c:Car)-[:SELLS]-(p:Person)-[KNOWS ]-(loggedUser:Person{id: 123}) RETURN c UNION MATCH (d:Degree {id: 2})-[:TARGET_TO]-(c:Car)-[:SELLS

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

2014-08-01 Thread Michael Azerhad
order by car.name asc Michael On Fri, Aug 1, 2014 at 9:41 AM, Michael Azerhad michael.azer...@gmail.com 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

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

2014-08-01 Thread Michael Azerhad
by car.name asc Michael On Fri, Aug 1, 2014 at 9:41 AM, Michael Azerhad michael...@gmail.com javascript: 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

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

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 message because you are subscribed

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

2014-08-03 Thread Michael Azerhad
On Sun, Aug 3, 2014 at 7:01 PM, Michael Azerhad michael.azer...@gmail.com 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. When dynos

[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

[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, count(game.name) = a user can

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

2014-08-07 Thread Michael Azerhad
Azerhad michael...@gmail.com javascript: wrote: 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

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 --

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 show you the issue

[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

[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 events in a kind of loop

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

2014-08-12 Thread Michael Azerhad
? 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 michael...@gmail.com javascript:: Hi, I'm using SDN 3.1.2

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 something that could

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

2014-08-12 Thread Michael Azerhad
;) 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. On Tuesday, August 12, 2014 12:48:08 PM UTC+2, Michael Azerhad wrote: I didn't try

[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)

[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. Let's take this example: I've

[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

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

2014-08-21 Thread Michael Azerhad
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(indexName = CarsLocation, indexType = IndexType.POINT) var wkt: String The whole works great and I can make queries

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

2014-08-22 Thread Michael Azerhad
, Aug 21, 2014 at 5:07 PM, Michael Azerhad michael...@gmail.com javascript: wrote: I tried to add the node to the index manually like this: POST /db/data/index/node/CarsLocation {value:dummy,key:dummy, uri:http://localhost:7474/db/data/node/25} //25 being my Car node's Id

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

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

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

2014-08-22 Thread michael azerhad
it is working now. On Fri, Aug 22, 2014 at 1:54 PM, Michael Azerhad michael.azer...@gmail.com wrote: Hi Craig, Thanks for this well detailed answer :) Finally, I found the trick to make the whole work without setting ANYTHING. I just reverse the latitude and longitude as suggested

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 cr...@amanzi.com 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

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

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

[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

[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:

[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 https://github.com/spring-projects/spring-data-neo4j/commit/e27287a4e1cd3de19eddb1f2fa3cb7a466fb1bc3 Is it about to be release in some days? Furthermore, is it possible to know if

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 michael...@gmail.com javascript: wrote: Hi

[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:

[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

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

2016-03-15 Thread Michael Azerhad
atively >>> >>> 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, reduce(

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

2016-03-15 Thread Michael Azerhad
gt; > On Wed, Mar 16, 2016 at 12:25 AM, Michael Azerhad <michael.azer...@gmail.com > <mailto:michael.azer...@gmail.com>> wrote: > Hi Michael, > > I think your query would result wrong results. > > Michael - KNOWS - Julia - KNOWS - Robert - KNOWS - Michael (sa

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

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

2016-03-15 Thread Michael Azerhad
_firstName + " " + person._lastName, f1, f2, f3 > > > > On Tue, Mar 15, 2016 at 10:30 PM, Michael Azerhad <michael...@gmail.com > > wrote: > >> Using Neo4J 2.1.5. >> >> Data: >> >>- 2000 Persons >>- KNOWS relationshi

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

2016-03-22 Thread Michael Azerhad
tinct nodes(path)[1]) as f1, count(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 <michael.azer..