java - OrientDB - minimal embedded configuration for desktop app use -


what possible minimal configuration embedded orientdb? default one, local embedded mode resource hungry , relatively starts relatively slow.

background: looking embedded database use inside desktop application cache operations, comparison of potentially large directory trees, finding structural differences, duplicate files, etc. because trees form of graph, graph oriented database looks match. embeddable databases java means: neo4j or orientdb. i've chosen orientdb on neo4j licensing reasons. looking lucene or relational db possible alternatives. orientdb.

simple plocal created freshly created db, empty, created as:

public void run() {     odatabasedocumenttx db = null;     try {         db = new odatabasedocumenttx("plocal:/c:/dev/orientdb/2017-08-20-c");         db.create();     } {         db.close();     } } 

..allocates 19.6 mb! (19 599 482 b). opening document database, not graph database here, results opening orientgraph() similar.

after adding 1 trivial document:

odocument doc = new odocument("person"); doc.field( "name", "luke" ); doc.field( "surname", "skywalker" ); doc.field( "city", new odocument("city")     .field("name","rome")     .field("country", "italy") ); doc.save(); 

..it rose 21 mb (21 010 614 b).

with memory it's same, wants me set -xx:maxdirectmemorysize 16gb.

the startup times quite bad:

new database created , opened in 4593 ms
existing database opened in 1693 ms

for comparison, lucene initializes in 198 ms; , new index! lucene data files, after adding 1 record, < 2 kb.

how orientdb scales down? there change bring down resource requirement levels experienced lucene?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -