A "refresh", i.e. clearing of caches can be performed by (API may change):
readOnlyGraphDb.getConfig().getGraphDbModule().getNodeManager().clearCache(); and you could maybe keep the default cache_type setting. That should do what you're asking for. 2011/4/5 David Montag <david.mon...@neotechnology.com> > Alfredas, > > A solution based on EmbeddedReadOnlyGraphDatabase would not be able to > benefit from caching, as each "refresh" of the view would have to clear the > caches. You could possibly achieve the solution you want by setting the > config parameter cache_type=none for the read-only instance. Then it should > not cache anything and always read from disk or OS cache. This would > however > yield degraded performance if you repeatedly read the same data. > > If your processing could benefit from caching, then you're better off > creating a new instance, or manually clearing the caches. Or going with the > HA-based solution that Jim and Mattias outlined. > > David > > On Tue, Apr 5, 2011 at 9:36 AM, Alfredas Chmieliauskas > <al.fre...@gmail.com>wrote: > > > Yes. The read only client would query the db at time intervals. > > > > Alfredas > > > > On Tue, Apr 5, 2011 at 5:40 PM, David Montag > > <david.mon...@neotechnology.com> wrote: > > > Alfredas, > > > When you say watch, do you mean "poll" the graph at some interval? What > > > would the read-only client do? > > > Thanks, > > > David > > > > > > On Tue, Apr 5, 2011 at 5:26 AM, Alfredas Chmieliauskas < > > al.fre...@gmail.com> > > > wrote: > > >> > > >> Dear all, > > >> > > >> we have the following situation: > > >> - 1 client is writing to the embedded db (writer) > > >> - 1 client would like to watch that (read-only) > > >> > > >> is that possible with the EmbeddedReadOnlyGraphDatabase? > > >> Currently it seems that the read-only db does not see the updates from > > >> the writer since its creation. It there a way to force refresh besides > > >> creating a new instance? > > >> > > >> Also are there any other/better ways to do that (1 writer, 1 reader) > > >> without going into the server mode? > > >> > > >> Thanks a lot, > > >> > > >> Alfredas > > >> _______________________________________________ > > >> Neo4j mailing list > > >> User@lists.neo4j.org > > >> https://lists.neo4j.org/mailman/listinfo/user > > > > > > > > > > > > -- > > > David Montag <david.mon...@neotechnology.com> > > > Neo Technology, www.neotechnology.com > > > Cell: 650.556.4411 > > > Skype: ddmontag > > > > > > > > > -- > David Montag <david.mon...@neotechnology.com> > Neo Technology, www.neotechnology.com > Cell: 650.556.4411 > Skype: ddmontag > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.com _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user