batch style of updates?

4 views
Skip to first unread message

Suteertha Guha

unread,
May 7, 2013, 5:58:52 PM5/7/13
to mor...@googlegroups.com
Hi,

Just like there is 
public <T> Iterable<Key<T>> insert(Iterable<T> entities, com.mongodb.WriteConcern wc) 
which allows batching of insert operations, 

is there an equivalent way of doing updates?

My application requires very fast rate of updates. One update at a time, even on multiple threads, is not meeting the goals.

For example, I can do a batch of 1K inserts in 400ms, but updates on the same document structure takes about 6s for every 1K documents.

Thanks in advance for any help or design pointers.
Suteertha
Reply all
Reply to author
Forward
0 new messages