简体   繁体   中英

How to increase creation speed on AgensGraph?

I try to load vertex on AgensGraph.

But, upload speed is too slow.

agens=# \timing on
Timing is on.
agens=# create (:v1{id:1});
GRAPH WRITE (INSERT VERTEX 1, INSERT EDGE 0)
Time: 23.285 ms

How can I increase creation speed on AgensGraph?

Avoid lost data, DBMS must sync to disk before commit.

It takes much time to commit.

You does not mind it.

Option "synchronous_commit" helps you.

agens=# set synchronous_commit to off;
SET
Time: 0.205 ms
agens=# create (:v1{id:1});
GRAPH WRITE (INSERT VERTEX 1, INSERT EDGE 0)
Time: 0.360 ms
agens=# set synchronous_commit to on;
SET
Time: 0.234 ms
agens=# create (:v1{id:1});
GRAPH WRITE (INSERT VERTEX 1, INSERT EDGE 0)
Time: 33.787 ms

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM