Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize batch import to KV backends #803

Merged
merged 5 commits into from
Jul 27, 2019
Merged

Optimize batch import to KV backends #803

merged 5 commits into from
Jul 27, 2019

Conversation

dennwc
Copy link
Member

@dennwc dennwc commented Jul 27, 2019

Expose a quad.Writer constructor on QuadStore to allow backend implementations to optimize quad import.

Also, implement the first set of optimizations for KV backends. Results for a 30K quads file:

benchmark                     old ns/op     new ns/op     delta
BenchmarkBolt/qs/import-8     3212907       490386        -84.74%
BenchmarkLeveldb/qs/import-8  4199793       231921        -94.48%

This change is Reviewable

@dennwc dennwc added this to the v0.7.6 milestone Jul 27, 2019
@dennwc dennwc self-assigned this Jul 27, 2019
@dennwc dennwc merged commit 79d7d62 into cayleygraph:master Jul 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant