We also moved to the 'create on demand' approach largely because we often
make enhancements to the application and required data structures, but run
on older databases, so it is nice if the app can 'update' the database.
Doesn't always work, but reduces the number of times we need to delete the
entire database and start over.

On Fri, Nov 20, 2009 at 3:54 PM, 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