add bulk with go routines

This commit is contained in:
alexisvisco 2019-03-27 15:22:27 +01:00
parent 56a7e26248
commit 52d3ad065b
9 changed files with 324 additions and 127 deletions

View file

@ -14,7 +14,7 @@ func main() {
// I will ignore all errors for demonstration purposes
_ = ingester.BulkPush("movies", "general", []sonic.IngestBulkRecord{
_, _ = ingester.BulkPush("movies", "general", 2, []sonic.IngestBulkRecord{
{"id:6ab56b4kk3", "Star wars"},
{"id:5hg67f8dg5", "Spider man"},
{"id:1m2n3b4vf6", "Batman"},