https://github.com/google/cayley
Revision b49c06e02ec983c9cc8b26c68e556493b0f125c5 authored by David Symonds on 21 February 2018, 22:29:08 UTC, committed by Denys Smirnov on 22 February 2018, 23:26:55 UTC
Because CockroachDB is a distributed database, round trips to it are
much slower than comparable round trips in, say, Postgres, so different
tradeoffs are required for optimal insertions. In this case, a single
INSERT statement with many values is much faster for CockroachDB to
handle than a sequence of single value INSERT statements.

In one test case involving loading a large number of nodes and quads,
this change produces a 4-5x speedup.

See https://github.com/cockroachdb/cockroach/issues/17108 for a more
detailed discussion of this matter.

Fixes #691.
1 parent ee1c44e
History
Tip revision: b49c06e02ec983c9cc8b26c68e556493b0f125c5 authored by David Symonds on 21 February 2018, 22:29:08 UTC
Rewrite CockroachDB SQL construction to be much faster.
Tip revision: b49c06e
File Mode Size
.github
appengine
client
clog
cmd
data
docs
examples
graph
internal
quad
query
schema
server
static
svg
templates
version
voc
writer
.dockerignore -rw-r--r-- 6 bytes
.gitignore -rw-r--r-- 123 bytes
.relego.yaml -rw-r--r-- 606 bytes
.travis.yml -rw-r--r-- 766 bytes
AUTHORS -rw-r--r-- 975 bytes
CONTRIBUTORS -rw-r--r-- 1.0 KB
Dockerfile -rw-r--r-- 2.1 KB
LICENSE -rw-r--r-- 9.9 KB
README.md -rw-r--r-- 2.5 KB
build.sh -rw-r--r-- 139 bytes
cayley_example.yml -rw-r--r-- 310 bytes
glide.lock -rw-r--r-- 5.6 KB
glide.yaml -rw-r--r-- 1.4 KB
gogen.go -rw-r--r-- 107 bytes
imports.go -rw-r--r-- 961 bytes
imports_19.go -rw-r--r-- 278 bytes
imports_pre19.go -rw-r--r-- 400 bytes

README.md

back to top