Orientdb performance issue on multi-threaded system

♀尐吖头ヾ 提交于 2020-01-07 03:09:28

问题


When you go through OrientDb website, they give some fancy statistics about number of document than can be created per second.

I am not in need of any these fancy speed, a moderate will work for my use case.

My use case :

  • My system is multi-threaded
  • On per request I am receiving

    • Db-Name
    • Current_Vertex_Name
    • Previous_Vertex_Name
  • Then execute the below pseudo code :-

I did tried my use-case with the below pseudo code but I found speed very slow.

Pseudo code of my use case is following below:-

        DB_Name = getFromSource()

        createGraphDb(DB_Name ) using OServerAdmin : if db do not exist
        gFactory = OrientGraphFactory(DB_Name ) : if db exist


        graph = OrientGraphFactory.getTx()

            currentVertexName = getFromSource()
            previousVertexName = getFromSource()

            if(previousVertexName and currentVertexName != null)
                  {
                       - if not exist 
                             - create Vertex named 'currentVertexName' , 'previousVertexName' 
                       - else
                             - update the existing vertexes e.g "update counter"
                       - create edges between them(from previous to current event)
                  }                 

       graph.shutdown()

Can any one, please share Java code creating at-least 1k Vertex + edges per second..!

Thanks..!

来源:https://stackoverflow.com/questions/40266255/orientdb-performance-issue-on-multi-threaded-system

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!