thx.
-karl
And maybe add an option to define if we want or not creating index in
background ? Can be a good idea in your case or not ?
--
Cyril Mougel
http://blog.shingara.fr
But you can only build one index in the background per collection at a
time, and the mongoid one may not be the one you want (and if another
one is building, the mongoid one will still block). I'd much prefer to
have manual control over this.
--
- Adam
----------
If you liked this email, you might also like:
"Some iPad apps I like"
-- http://workstuff.tumblr.com/post/680301206
"In praise of the Sous Vide Supreme"
-- http://www.aquick.org/blog/2010/05/17/in-praise-of-the-sous-vide-supreme/
"Just Married!"
-- http://www.flickr.com/photos/fields/4721009476/
"fields: @VLAIC Some of those are gooseberries."
-- http://twitter.com/fields/statuses/17522175900
----------
** I design intricate-yet-elegant processes for user and machine problems.
** Custom development project broken? Contact me, I can help.
** Some of what I do: http://workstuff.tumblr.com/post/70505118/aboutworkstuff
[ http://www.adamfields.com/resume.html ].. Experience
[ http://www.morningside-analytics.com ] .. Latest Venture
[ http://www.confabb.com ] ................ Founder
Having the command in mongo be "ensure index" instead of "create
index" doesn't help with this perception. With the semantics of not
erroring out if the index already exists, you're encouraging people to
run this at init time to make sure the indexes are covered instead of
having a separate index creation process.
If I didn't know any better, I'd assume from the docs
http://www.mongodb.org/display/DOCS/Indexes that building an index
isn't going to hurt anything. It's only once you get to the
http://www.mongodb.org/display/DOCS/Indexing+Advice+and+FAQ page that
there's any discussion of the problems this might cause (and even
there, it doesn't even come out and say that index building blocks
queries).
Is there any reason why multiple indexes can't be built in parallel in
the background for the same collection? If we could do that, I think
it would make sense to just get rid of foreground index building
entirely and make all of the indexes builds backgrounded.