Reference node concept

68 views
Skip to first unread message

fli.rpx

unread,
Aug 15, 2012, 2:39:27 PM8/15/12
to ne...@googlegroups.com
Hi,

Reference node is a bit confusing to me. How do you create a reference node with cypher?

Seems like you don't need to have a reference node, because you can just create a node and give it type.

Can anybody explain the concept or point out a documentation?

Thanks in advance,

Fudong

Michael Hunger

unread,
Aug 15, 2012, 9:03:31 PM8/15/12
to ne...@googlegroups.com
It will go away, relic from old times

Sent from mobile device
--
 
 

Peter Neubauer

unread,
Aug 16, 2012, 1:52:00 AM8/16/12
to ne...@googlegroups.com

Yes,
Finally. We just need to get the deprecating pull request into master first :-)

/peter

Send from mobile.

--
 
 

Nigel Small

unread,
Aug 16, 2012, 4:13:21 AM8/16/12
to ne...@googlegroups.com
What's the timescale on the deprecation/removal of the reference node? Just wondering so I can plan to deprecate get_reference_node in py2neo at the same time...

Nige


--
 
 

Peter Neubauer

unread,
Aug 16, 2012, 4:14:43 AM8/16/12
to ne...@googlegroups.com
Normally,
we try to have a time lag of 2 releases from deprecation to possible
removal. So if this gets deprecated in 1.9, we could remove it in 1.11

Cheers,

/peter neubauer

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

Wanna learn something new? Come to @graphconnect.
> --
>
>

Craig Taverner

unread,
Aug 16, 2012, 4:26:45 AM8/16/12
to ne...@googlegroups.com
Is there some online documentation on recommended patterns to use instead of the reference node? I know that I, for one, used the reference node for almost all data structures, very much like using '/' in unix. Without the reference node, I assume that all starting points need to be specified by node id, which should be obtained from an external source. I expect in most cases the external source will actually be the included lucene index, unless the app decided to add some other persistence feature. In this case perhaps the 'recommended pattern' would be a description of using lucene for start nodes. I believe this is already the case in most cypher examples, but perhaps not for embedded java usage.

--



Michael Hunger

unread,
Aug 16, 2012, 4:44:15 AM8/16/12
to ne...@googlegroups.com
See the existing PR in the samples

Sent from mobile device
--
 
 

Nigel Small

unread,
Aug 16, 2012, 4:56:09 AM8/16/12
to ne...@googlegroups.com
There's also some more discussion about it in this thread:

https://groups.google.com/d/topic/neo4j/vNJ9B1cim2A/discussion

Nige


--
 
 

James Thornton

unread,
Aug 16, 2012, 8:03:38 AM8/16/12
to ne...@googlegroups.com
You are correct -- use indexes instead.
Reply all
Reply to author
Forward
0 new messages