Create schema for graph database with Java in OrientDB

梦想的初衷 提交于 2019-12-04 19:20:02

See here there I show a complete example about creating a graph database.

Some of the main points about that import:

  • use always the factory factoryGraph = new OrientGraphFactory(dbPath, "admin", "admin").setupPool(1, 10);
  • create database structure with the non-graph environment (somehow this works much better I found out after some time) db = new ODatabaseDocumentTx(dbPath);
  • create helper methods (e.g. void createProperty(String className, String propertyName, OType oType) {...})

I'm working with this way of import in my latest project and having no issues. I also created a technique to save the old functions and after the import I restore them.

If you need more infos let me know and I'll add them here.

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