--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/ad685e2b-ad0a-4085-b7a8-debf81c1cfd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Travis,You shouldn't be querying against system collection since it's an implementation detail. It will not be available with other storage engines anyway.Why do you need to query to see if collection exists? You can just query for count from it - if it's not there you'll get 0...
Why is it illegal to create an index on the system.namespaces collection in 2.6? We've been doing this for a long time, since we do lookups against system.namespaces in various parts of our code to see if collections or indexes already exist. With the index, lookups are very fast and log at < 0ms. Without it we see nscanned as high as 25k in sample workloads, with average duration in the 100s of ms and peak durations as high as 8s. All of our queries are against the name field and are generally exact match lookups or prefix searches. Our nssize is 256, so we do run with larger namespaces.--This caught us off guard when testing 2.6, because when we run a 2.6 binary against our existing data files, the index is there and is still used. Only when we create a new database and attempt to index its namespace collection do we run into problems. Further, if a 2.6 secondary is syncing to a 2.4 primary, an index build on system.namespaces on the primary is happily picked up and built on the secondary without error. Given this, the restriction seems arbitrary. I tested one of our sample workloads against 2.6.5 where all of the existing indexes on system.namespaces were removed, and saw an 11% performance degradation. Is indexing system.namespaces harmful in some way? Are there any workarounds for doing the kind of lookups we're doing now?Thanks,Travis
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/9f20c079-fd26-441b-87d9-6e0882917176%40googlegroups.com.