newEmbeddedDatabase api needs a path on file system. why cant it use in-memory?

StackOverflow https://stackoverflow.com/questions/18929798

  •  29-06-2022
  •  | 
  •  

문제

My need is to use neo4j embedded in my java appliation . As I do not want to store anything on file system, I want to create my database in-memory. Is it possible in neo4j when it is embedded in my java application?

도움이 되었습니까?

해결책

Run your graph db on a mountpoint using tmpfs and disable file buffer caches (use_memory_mapped_buffers=false).

다른 팁

You can use ImpermanentGraphDatabase if you want a temporary per request graph model. Or you can try TinkerGraph's in-memory capabilities and use Gremlin for querying/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top