Looking at the reactiveMongo documentation - bulkInsert - Future[Int]

58 views
Skip to first unread message

Akka Chelley

unread,
Apr 15, 2014, 12:49:58 PM4/15/14
to reacti...@googlegroups.com




defbulkInsert[T](enumerator: Enumerator[T]bulkSize: IntbulkByteSize: Int)(implicitwriter: BSONDocumentWriter[T]ec: ExecutionContext)Future[Int]

Definition Classes
GenericCollection


What is the return value of Future[Int], I am assuming that it's equivalent to the size of the Enumerator i.e the total number of elements. Any thing other than the totalnumbers is  considered a failure ?.

Andrey Neverov

unread,
Apr 16, 2014, 2:47:24 AM4/16/14
to reacti...@googlegroups.com
It is supposed to return a number of successfully inserted documents. 
Be aware of default maximum sizes for bulk insert (default max size for a bulk is 1MB, default max docs number for a bulk is 100.
Reply all
Reply to author
Forward
0 new messages