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 Object
trait Matchable
class Any
case class OperationsQueue[D <: Document[D], M <: DocumentModel[D]](collection: DocumentCollection[D, M], flushSize: Int, chunkSize: Int)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
case class ProcessQueue[T](process: List[T] => IO[Unit], flushSize: Int, chunkSize: Int)

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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all