2

我正在使用JDBC 驱动程序 v2.2.13连接到远程数据库,如下所示

Connection conn = (OrientJdbcConnection) DriverManager.getConnection("jdbc:orient:remote:"  + ip + ":" + port + ";" + ip + ":" + port2 + "/"
                    + appName, info);

创建边缘时,我收到以下警告作为服务器日志

WARNI {db=Sun} Requested command 'create edge type '_F_ as subclass of 'E'' must be executed outside active transaction: the transactional will be committed and reopen right after it. To avoid this behavior execute it outside a transaction [OrientGraph]

从警告看来,数据库的实例(连接连接)是事务性的。

解决此问题的一种方法是使用使用 Java API 的OrientgraphNoTx数据库实例。

如何 为Orient JDBC 驱动程序执行“非事务性”提交或等效OrientgraphNoTx

4

0 回答 0