add bulk with go routines
This commit is contained in:
parent
56a7e26248
commit
52d3ad065b
9 changed files with 324 additions and 127 deletions
|
|
@ -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"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue