Skip to content
Discussion options

You must be logged in to vote

First have a look to see what the current index is/are. Mine says:

production> db.EMAIL_CONTROL.getIndexes()
[
  { v: 2, key: { _id: 1 }, name: '_id_' },
  {
    v: 2,
    key: { type: 1, subject: 1, datetime: -1 },
    name: 'type_1_subject_1_datetime_-1',
    unique: true
  }
]

That first one is just the default one you get for the id, that gets created automatically I think. PST code tries to create a multikey one as well, the config is in mongo_email_control.py lines 17 to 24 ish.

Try deleting the second one if it exists. Then, the next time you access that collection, the multikey index will be re-created

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Plex134
Comment options

Answer selected by Plex134
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants