[Neo] Quick question on finding orphaned nodes
Johan Svensson
johan at neotechnology.com
Sun Jan 17 15:52:03 CET 2010
On Sun, Jan 17, 2010 at 3:42 PM, Rick Bullotta
<rick.bullotta at burningskysoftware.com> wrote:
> Thanks for the info, Johan. Although the relationships are lazily loaded,
> does the "hasRelationship()" method typically require a disk read?
>
Only if the list is empty and no relationships have been loaded from
disk. A warm instance would typically not go down on disk but a cold
(just started, nothing cached) would have to read from disk.
> -----Original Message-----
> From: user-bounces at lists.neo4j.org [mailto:user-bounces at lists.neo4j.org] On
> Behalf Of Johan Svensson
> Sent: Sunday, January 17, 2010 9:35 AM
> To: Neo user discussions
> Subject: Re: [Neo] Quick question on finding orphaned nodes
>
> Hi Rick,
>
> On Sun, Jan 17, 2010 at 2:01 AM, Rick Bullotta
> <rick.bullotta at burningskysoftware.com> wrote:
>> Here's a broader question:
>>
>> Does Neo maintain an in-memory list of relationships for a given node? If
>> so, could the # of relationships be exposed somehow as a property of the
>> node?
>
> There is an in-memory list of relationships for each node but it does
> not always contain the number of relationships that actually exist
> (relationships are loaded lazily when needed).
>
> Regards,
> -Johan
More information about the User
mailing list