Mongo::OperationFailure: Database command 'filemd5' failed: {"errmsg"=>"exception: best guess plan requested, but scan and order required: query: { files_id: ObjectId('4d2c6aed069cec2473000002') } order: { files_id: 1, n: 1 } choices: { $natural: 1 } ", "code"=>13284, "ok"=>0.0}
I'm using:
MM 0.8.6
Joint 0.5.2
mongo 1.1.5
Mongo Database is at version 1.6.3
Any clue?
Brian Hempel
> --
> You received this message because you are subscribed to the Google
> Groups "MongoMapper" group.
> For more options, visit this group at
> http://groups.google.com/group/mongomapper?hl=en?hl=en
dbpath = /data/db
bind_ip = 127.0.0.1
logpath = /opt/local/var/log/mongodb/mongodb.log
logappend = 1
verbose = 1
These are the indexes in my development database:
> db.fs.chunks.getIndexes()
[
{
"name" : "_id_",
"ns" : "acme_development.fs.chunks",
"key" : {
"_id" : 1
}
},
{
"unique" : true,
"ns" : "acme_development.fs.chunks",
"name" : "files_id_1_n_1",
"key" : {
"files_id" : 1,
"n" : 1
}
}
]
While these are the indexes in my test database:
> db.fs.chunks.getIndexes()
[
{
"name" : "_id_",
"ns" : "acme_test.fs.chunks",
"key" : {
"_id" : 1
}
}
]
Now I'm trying to understand why this difference and if this may be the cause. I actually did not try that feature in the development live app.
On 11/gen/2011, at 17.51, Kyle Banker wrote:
Why do you mention the produciton environment? Is there something
to be triggered depending on the Rails.env?