簡體   English   中英

升級到neo4j 2.0 RC1后的性能問題

[英]Performance issue after upgrading to neo4j 2.0 RC1

我們有一個嵌入neo4j服務器的Java應用程序。 該應用程序從Oracle db加載一些數據,創建圖,然后用戶可以根據需要進行特定於域的遍歷和算法。

我們最近從1.9.3升級到2.0 RC1。 現在,我們正在使用架構和唯一約束,如下所示:

Iterator<ConstraintDefinition> constraints = schema.getConstraints(
                DynamicLabel.label(label)).iterator();
        if (constraints == null || !constraints.hasNext()) {
            try {
                schema.constraintFor(
                        DynamicLabel.label(label))
                        .assertPropertyIsUnique(propertyName).create();
            } catch (org.neo4j.graphdb.ConstraintViolationException ex) {
                LOG.error("CONSTRAINT ALREADY DEFINED ON: "
                        + label);
            }
        }

問題是我們的應用程序啟動時間慢了10倍。 對cpu時間進行采樣可以發現以下內容:

jview捕獲

我們對應用程序進行了檢測,發現了速度緩慢的根本原因。 以下線程將討論我們詳細發現的特定問題:

使用Neo4j 2.0 RC1批量提交節點時如何提高性能?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM