08 Feb 2014
mongoDB – Foreground Index Vs Background Index
Foreground Index Vs Background Index
By default an index in MongoDB is Foreground index and while an index is a foreground index it will block all other writers (i-e no other process can write to collection), We can build it in background so that it will not block other writers.
Foreground Indexes are
2. Block other writers.
Background Indexes, If we set background:true then it will
2. Will not block concurrent writes