Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Can I have controll over the GeomNode id?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Craig Taverner  
View profile  
 More options May 10 2012, 10:15 am
From: Craig Taverner <cr...@amanzi.com>
Date: Thu, 10 May 2012 16:15:25 +0200
Local: Thurs, May 10 2012 10:15 am
Subject: Re: [Neo4j] Can I have controll over the GeomNode id?

My 2 cents:

It sounds like you want two databases to have the same id space. In that
case, you should use HA.

If, instead you want two databases to have only parts of the graph shared,
and other parts different, then it gets more complex. In that case I agree
with Peter, you need to explain your actual use case so he (or I, or
someone else) can recommend a solution. A key questions to answer: why do
you have two servers? What is the purpose: redundancy, sharding, different
apps?

I also think this question is not specific to neo4j-spatial, but to neo4j
in general. The concept of controlling the node-id from the app. In
principle it cannot, or even should not be done. I suspect your reasons for
wanting this are based on a use case or feature that might be satisfied in
some other way.

On Thu, May 10, 2012 at 3:41 PM, Peter Neubauer <

peter.neuba...@neotechnology.com> wrote:
> Right,
> so you want to federate the same lon/lat geometry point over several
> servers and attach different domain nodes to it in the different
> graphs? Sorry, I am not totally clear over how you are using it. Maybe
> we could even Skype?

> Cheers,

> /peter neubauer

> G:  neubauer.peter
> S:  peter.neubauer
> P:  +46 704 106975
> L:   http://www.linkedin.com/in/neubauer
> T:   @peterneubauer

> If you can write, you can code - @coderdojomalmo
> If you can sketch, you can use a graph database - @neo4j

> On Mon, May 7, 2012 at 3:45 PM, Eugen Paraschiv <hanrisel...@gmail.com>
> wrote:
> > So, I didn't expect Neo4J to assign the same id based on the fact that
> > lat,long were the same. That's what I want, but I don't expect that to be
> > the default behaviour. What I am going for is controlling that behaviour
> > (setting the id) manually, from the outside. The reason that would help
> is
> > that I'm adding the geo point (lat,long) to neo4j and then I'm storing
> the
> > id somewhere else, so that I can later on work with it. In Neo4J spatial,
> > most if not all operations are related to this geom id - for instance,
> > delete is by id, so in order to delete the node, I need to keep track of
> > this id.
> > If each server will assign it's own id, then I will need to store all of
> > these, whereas if I can specify a single id, then I only need to store
> that
> > one.
> > Thanks for the feedback.
> > Eugen.

> > On Mon, May 7, 2012 at 4:40 PM, Peter Neubauer
> > <peter.neuba...@neotechnology.com> wrote:

> >> Mmh,
> >> so you are saying if lat/lon are the same, then the indexed geometry
> >> node should be the same? You could of course do some custom structure
> >> and do exactly that - attaching your POI to the same Location node
> >> that then gets indexed only once? Not sure I understand why having
> >> your custom IDs would help you here.

> >> Cheers,

> >> /peter neubauer

> >> G:  neubauer.peter
> >> S:  peter.neubauer
> >> P:  +46 704 106975
> >> L:   http://www.linkedin.com/in/neubauer
> >> T:   @peterneubauer

> >> If you can write, you can code - @coderdojomalmo
> >> If you can sketch, you can use a graph database - @neo4j

> >> On Mon, May 7, 2012 at 2:29 PM, Eugen Paraschiv <hanrisel...@gmail.com>
> >> wrote:
> >> > OK, so first, on the custom property you mention, how would I use that
> >> > to
> >> > gain control of the id generation process. As far as I can tell, the
> ids
> >> > get
> >> > generated automatically and I couldn't find a way to control the
> >> > process. Is
> >> > there any example for this one?
> >> > Next, let me give you some more background of why I would want to do
> >> > this: I
> >> > have 2 nodes, both running neo4j and I'm indexing a location
> (lat,long)
> >> > in
> >> > both of them; each one will assign it's own id to that location, so
> the
> >> > id's
> >> > I'm getting back are different. If I could set the ids myself, I would
> >> > be
> >> > able to generate an id (manually, and ensure it's unique) and then
> pass
> >> > it
> >> > into the index operation on both machines, so that they both end up
> >> > using
> >> > the same id.
> >> > Hopefully that clarifies the usecase and what kind of control I need
> >> > related
> >> > to ids.
> >> > Thanks.
> >> > Eugen.

> >> > On Sunday, May 6, 2012 8:57:42 PM UTC+3, Peter Neubauer wrote:

> >> >> Eugen,
> >> >> Right now we are taking the default node ids, but I think some custom
> >> >> property to use instead, like your own I'd, could be used. Also, I'd
> >> >> you get
> >> >> back your domain node, you could just read it out again?

> >> >> On May 6, 2012 6:45 PM, "Eugen Paraschiv" <hanrisel...@gmail.com>
> >> >> wrote:

> >> >>> I'm using Neo4J 1.6.2 and Neo4J Spatial 0.8.
> >> >>> I'm working against the SimplePointLayer and adding a (lat,long) via
> >> >>> add(double x, double y)
> >> >>> The Node associated with the location and returned in the
> >> >>> SpatialDatabaseRecord has an id, which is generated by the
> >> >>> IdGenerator.
> >> >>> My question is: is there any way to pass in my own ids (unique) or
> >> >>> control this process in any way?
> >> >>> Thanks.
> >> >>> Eugen.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.