I am working with OrientDB with the Java API. I have this warning and I donβt understand why:
The command "create vertex type" "User" as a subclass of "V" must be executed outside the active transaction: the transaction will be completed and will open again immediately after it. To avoid this behavior, execute it outside the transaction
My Java code is:
OrientGraph graph = new OrientGraphFactory(databaseUrl).getTx(); graph.createVertexType(User.CLASS_NAME); graph.createKeyIndex(User.MAIL_KEY, Vertex.class, new Parameter<>("type", "UNIQUE"),new Parameter<>("class", User.CLASS_NAME)); graph.commit(); graph.shutdown();
The solution is to use a databaseless transaction. Your first line should be:
OrientGraphNoTx graph = new OrientGraphFactory(databaseUrl).getNoTx();
OrientGraphNoTx , OrientGraph. , , , ( , . , ). , , .
Source: https://habr.com/ru/post/1621725/More articles:height using Dragend JS - javascriptGetting a StackOverflowException when connecting a list to a list - c #I want to remove the aesthetics legend in my plot using ggmap in R - rClassification of tweets with multiple tags python nltk - pythonDependency container and C # constructors - constructorHow to enable conda update - complete error "Unfulfilled package specifications" - pythonΠΡΠΆΠ΅Π½ Π°Π»Π³ΠΎΡΠΈΡΠΌ Π΄Π»Ρ ΠΏΠ΅ΡΠ΅ΡΠ°ΡΠΎΠ²ΠΊΠΈ ΡΠ»Π΅ΠΌΠ΅Π½ΡΠΎΠ² ΠΈΠ· 5 ΠΌΠ°ΡΡΠΈΠ²ΠΎΠ², ΠΊΠ°ΠΆΠ΄ΡΠΉ ΠΈΠ· ΠΊΠΎΡΠΎΡΡΡ ΠΈΠΌΠ΅Π΅Ρ ΡΠ΅ ΠΆΠ΅ 5 ΡΠ»Π΅ΠΌΠ΅Π½ΡΠΎΠ², ΡΡΠΎ Π΄Π²Π° ΠΌΠ°ΡΡΠΈΠ²Π° Π½Π΅ ΠΈΠΌΠ΅ΡΡ ΠΎΠ΄ΠΈΠ½ ΠΈ ΡΠΎΡ ΠΆΠ΅ ΡΠ»Π΅ΠΌΠ΅Π½Ρ Ρ ΠΎΠ΄Π½ΠΈΠΌ ΠΈ ΡΠ΅ΠΌ ΠΆΠ΅ ΠΈΠ½Π΄Π΅ΠΊΡΠΎΠΌ - sortinghttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1621728/firebase-disk-persistence-error-modifications-to-config-objects-must-occur-before-they-are-in-use&usg=ALkJrhgO59LWW76VSFfcniDpFIz0-PYbQgDifference between noverify and Xverify: no? - javaAfter deleting a node in a linked list, the remote node is displayed in the node list - javaAll Articles