OperationQueueSupport
com.outr.arango.queue.OperationQueueSupport
trait OperationQueueSupport
Mix-in to provide operation queueing capabilities for DocumentModel. With this mixed in, you can use implicits to call:
database.collection.op.upsert(docs: _*): IO[Unit]
This will queue up to opFlushSize
and then stream the batch in opChunkSize
into the database. Very useful when you are needing to do various operations across potentially multiple collections efficiently. Make sure to call flushQueue()
when finished to avoid un-pushed operations.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article