com.outr.arango.queue
Members list
Type members
Classlikes
Mix-in to provide operation queueing capabilities for DocumentModel. With this mixed in, you can use implicits to call:
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
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Self type
-
ProcessQueue provides a convenience capability to batch process in chunks.
ProcessQueue provides a convenience capability to batch process in chunks.
Value parameters
- chunkSize
-
the max number of records per chunk sent to the process function
- flushSize
-
the number of records before a flush occurs
- process
-
the function to process a chunk of the queue
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all