spaceuptech / space-api-java

Apache License 2.0
5 stars 3 forks source link

Need to add support for batch operations #4

Closed HeyItsJs closed 5 years ago

HeyItsJs commented 5 years ago

The grpc endpoint for batch operations is ready. Need to get that in client.

Here's how the batch API looks for javascript:

const batch = db.beginBatch();
batch.add(db.insert(col).docs(...docs));
batch.add(db.update(col).where(whereClause).set())

// Apply batch
batch.apply().then(res => ...).catch(ex => ...)

Same needs to be ported for Java

HeyItsJs commented 5 years ago

Needs to solve #3 before this