3 ms·
> 10gen has added the aggregation framework, full-text search, collection-level locking, etc. Mongo has collection-level locking? I thought there was some prel
by spamizbad 14y ago
> 10gen has added the aggregation framework, full-text search, collection-level locking, etc.
Mongo has collection-level locking? I thought there was some preliminary work to support it in 2.2 (It just does database-level locking for now), but it's still unsupported. Source: https://jira.mongodb.org/browse/SERVER-1240 https://jira.mongodb.org/browse/SERVER-1240
Also, I wouldn't recommend using any of the aggregation stuff unless its for infrequent ad-hoc stuff or scheduled tasks during slow periods.
- conesus 14y agoI use aggregation queries regularly and it's amazing. My MongoDB database has 4k ops/sec and I run an aggregation query to count averages, sums, and splits on a name (to get averages and sums for each of two dozen groups) for about 10K rows every 5 minutes. Not a huge amount, but this is on a db that is performing a ton of work. Also, I should mention that you should probably run your aggregation queries on your secondaries.
- misiti3780 14y agoi agree - the aggregation framework seems solid - much better performance than map-reduce
- pvnick 14y agoYou're right, it doesn't yet support collection-level locking (https://jira.mongodb.org/browse/SERVER-1240 https://jira.mongodb.org/browse/SERVER-1240).