I am using Neo4j embedded database on a Play/Scala app. I leaned towards the embedded version because I want to use the Neo4j's Traversal Framework so I can easily create JSON trees using a breadth-first traversal. The problem with embedding the database is that when my Play application hot-reloads, it restarts the application, whereby my app shuts down the server (otherwise I get a db file lock error). This is causing 20s browser reloads between edits. This is especially annoying when editing Play's Twirl html files.
Am I screwed? Should I hide the calls to the embedded db behind a service? Is it worth it to do this just for developement? AFAIK, Neo4j's RESTful service doesn't allow breadth-first traversals. I'm open to suggestions. Thanks.