Hello Jim, thanks for your reply. Yes, this is absolutely correct.
Mathias > Message: 5 > Date: Sat, 16 Jul 2011 08:46:57 -0600 > From: Jim Webber <[email protected]> > Subject: Re: [Neo4j] Synchronization of EmbeddedReadOnlyGraphDatabase > - Bug? > To: Neo4j user discussions <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset=us-ascii > > Hi Mattias, > > If I understand you correctly, you're pointing two database instances (one > being read-only) at the same on-disk location. Is that correct? > > Jim > > On 16 Jul 2011, at 07:37, Mathias Hensel wrote: > > > > > Hello, > > > > I try to use Neo4J in a Ruby on Rails application (MRI Ruby not JRuby). Due > > to Rails process-based model I run one instance of the > > EmbeddedGraphDatabase in a separate process. All write updates coming in > > from user actions are delegated to this process. The EmbeddedGraphDatabase > > here serves as a pure writeable database. All reads are handled directly in > > the web app through multiple instances of EmbeddedReadOnlyGraphDatabase > > (one instance for each web server process). > > > > Unfortunately I encountered the following problem: When adding a new > > relationship to a node (via the EmbeddedGraphDatabase), this relationship > > is not visible to the EmbeddedReadOnlyGraphDatabase. I can reopen the > > EmbeddedReadOnlyGraphDatabase from time to time or even at each request, > > but this ends up with an "InvalidRecordException: Record[9180] not in use" > > when trying to traverse the node or trying to get the relationships. 9180 > > is the newly created relationship. > > > > Only when I restart the EmbeddedGraphDatabase this relationship is visible > > to the EmbeddedReadOnlyGraphDatabase without any exceptions but this > > shouldn't be the use case. Is this a bug or is there an explicit way to > > synchronize both types of database instances? > > > > Thank you very much! > > > > Regards, > > Mathias > > > > > > > > _______________________________________________ > > Neo4j mailing list > > [email protected] > > https://lists.neo4j.org/mailman/listinfo/user > > > _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

