Messages _list is not using the right index
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zaqar |
Fix Released
|
High
|
Flavio Percoco |
Bug Description
mongodb's message controller is not using the right index. This can be fix by using hint and passing all indexed fields to the query:
db.messages.find({ "q" : ObjectId(
{
"cursor" : "BtreeCursor claimed",
.......
The above query should be using the "active" index instead and the marker should always be passed. We can use {"$gt": 0} (or {"$ne": null} ) when it is not needed.
As for the index, we should use hint and tell the query what index to use.
https:/
https:/
description: | updated |
Changed in marconi: | |
importance: | Undecided → High |
assignee: | nobody → Flavio Percoco (flaper87) |
Changed in marconi: | |
milestone: | none → havana-3 |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/39456
Review: https:/