-
Notifications
You must be signed in to change notification settings - Fork 8
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
KV BulkWrite #223
KV BulkWrite #223
Conversation
… durning load. This should streamline the loader, so that the index code just writes, with not gets to increment counters.
…ifferent when using badger driver Fixing lint
It turned out the aggrigation processor was dependent on a bug in the KVIndex code, and when we fixed that, it broke the aggigator Fixing lint Fixing lint
Fixing lint Adding level testing back into travis Removing rocks from docs
|
||
// StreamBatch a stream of inputs and loads them into the graph | ||
// This function assumes incoming stream is GraphElemnts from a single graph | ||
func StreamBatch(stream <-chan *gripql.GraphElement, batchSize int, graph string, vertexAdd func([]*gripql.Vertex) error, edgeAdd func([]*gripql.Edge) error) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might make more sense to use key/value serialized value size to determine batches, rather then use a batchSize. But that can probably left for another PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed.
@@ -34,3 +37,30 @@ def test_bulkload(O): | |||
(res["count"], 6)) | |||
|
|||
return errors | |||
|
|||
|
|||
def test_bulkload_validate(O): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be worth adding in a unit test that actually tests the batching? IE, lots of vertices or elements with large amounts of attached data?
👍 |
Replaces #211
Currently unable to load BMEG due to OOM error in badger that occurs while loading expression data.