OrientDB slow write

后端 未结 3 2000
既然无缘
既然无缘 2021-02-20 06:22

OrientDB official site says:

On common hardware stores up to 150.000 documents per second, 10 billions of documents per day. Big Graphs are loaded in fe

3条回答
  •  借酒劲吻你
    2021-02-20 07:09

    Read the documentation first on how to achive the best performance!

    Few tips:

    -> Do NOT instantiate ODocument always:

      final ODocument doc;
      for (...) {
        doc.reset();
        doc.setClassName("Class");
        // Put data to fields
        doc.save();
      }
    

    -> Do NOT rely on System.currentTimeMillis() - use perf4j or similar tool to measure times, because the first one measures global system times hence includes execution time of all other programs running on your system!

提交回复
热议问题