I don't know if this is best practice but I have in the passed used
the ref node to store stats about the graph, I.e. Node count,
relationship count etc....

D

On 20 Nov 2009, at 14:54, Mattias Persson <matt...@neotechnology.com>
wrote:

> 2009/11/20 Laurent Laborde <kerdez...@gmail.com>:
>> Aditionnaly, i think that i found the easiest way to know if i run a
>> new database for the first time :
>> if(referenceNode.hasRelationship() == false) {
>>     //we are running this database for the first time
>>     //initialize stuff.
>> }
>
> Sounds like an excellent idea.
>
> Just a thought: when I write code with neo4j I never think of an
> "initialization phase", but rather that my nodes and relationships are
> always created on demand as needed if they don't exist. Maybe that's a
> matter of taste though.
>
>>
>> On Fri, Nov 20, 2009 at 1:13 PM, Mattias Persson
>> <matt...@neotechnology.com> wrote:
>>> Great, I'd be glad to answer more questions as they come along...
>>> and
>>> enjoy your lunch!
>>>
>>> Best,
>>> Mattias
>>>
>>> 2009/11/20 Laurent Laborde <kerdez...@gmail.com>:
>>>> Thank you for your very fast replies.
>>>> I will have more question, soon.
>>>> But it's time to eat and i'll have some code to do before jumping
>>>> to
>>>> the next problem.
>>>>
>>>> --
>>>> Ker2x
>>>> sysadmin & DBA @ http://www.over-blog.com/
>>>> _______________________________________________
>>>> Neo mailing list
>>>> User@lists.neo4j.org
>>>> https://lists.neo4j.org/mailman/listinfo/user
>>>>
>>>
>>>
>>>
>>> --
>>> Mattias Persson, [matt...@neotechnology.com]
>>> Neo Technology, www.neotechnology.com
>>> _______________________________________________
>>> Neo mailing list
>>> User@lists.neo4j.org
>>> https://lists.neo4j.org/mailman/listinfo/user
>>>
>>
>>
>>
>> --
>> F4FQM
>> Kerunix Flan
>> Laurent Laborde
>> _______________________________________________
>> Neo mailing list
>> User@lists.neo4j.org
>> https://lists.neo4j.org/mailman/listinfo/user
>>
>
>
>
> --
> Mattias Persson, [matt...@neotechnology.com]
> Neo Technology, www.neotechnology.com
> _______________________________________________
> Neo mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
_______________________________________________
Neo mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to