2010/2/26 Hans Brattberg <hans.brattb...@crisp.se>: > Hi! > > For test automation it could be useful to create an instance of > EmbeddedGraphDatabase that don't use the file system, but only keep > the data in memory, in the same way hsqldb can be configured. > > Is there another version of EmbeddedGraphDatabase for that purpose, or > has any one a solution fort this? > > /Hans
At the moment there's only the filesystem backend, but we're planning to add such an in-memory backend to have, as you say, for tests and such. One solution right now could be to create a file system in RAM, http://en.wikipedia.org/wiki/RAM_disk, but that would probably require you to delete/recreate the file system or use a new database folder name for each test... much like deleting your my/neo4j-db/ database folder before each test. So the problem wouldn't really go away. In most cases you can just have a MyFileUtils.deleteDirectory( "my/neo4j-db" ) before instantiating your EmbeddedGraphDatabase instance, but that's probably what you're trying to get away from :) ? -- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com _______________________________________________ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user