[Neo4j] Auto-warming the Neo4J caches

2011-12-05 Thread Ian Forsey
Hi there, I'm looking to get my entire graph into memory. I've configured the file buffer cache, but nodes/rels don't get added into the cache until I first query them. Is it just a case of traversing the entire graph to warm-up the cache on application startup? Or is there another way to tell

Re: [Neo4j] Auto-warming the Neo4J caches

2011-12-05 Thread Mattias Persson
Warming up the graph is best done by warming up the graph, so to speak. Every warmup use case is different, and for warming up the entire graph you'll have to loop through all nodes and get their relationships and if you'd like to have properties in there too then load them also. The most basic

Re: [Neo4j] Auto-warming the Neo4J caches

2011-12-05 Thread Ian Forsey
Thanks Mattias, I'll try that out. Playing about, I've noticed that the file buffer cache seems to survive restarts. Is this correct? Is it guaranteed that the whole file buffer cache will survive? On 5 December 2011 14:09, Mattias Persson matt...@neotechnology.com wrote: Warming up the graph

Re: [Neo4j] Auto-warming the Neo4J caches

2011-12-05 Thread Mattias Persson
You're referring to the file system caches managed by the operating system, right? That neo4j has no control over and is up to the specific OS you run it on. 2011/12/5 Ian Forsey for...@gmail.com Thanks Mattias, I'll try that out. Playing about, I've noticed that the file buffer cache seems

Re: [Neo4j] Auto-warming the Neo4J caches

2011-12-05 Thread Ian Forsey
Yes, the file system cache that lives outside the JVM heap. Thanks for your reply - it's really helped me out. I understand now that the OS is caching the file system cache between restarts of the Neo4J JVM. For my use case I think I will have to have think about the best strategy for warming