Skip to content

Conversation

estobbart
Copy link

When IndexModel objects are created by the user, you can check if they exist by comparing to a collections list_index method.

@marcus-ahle
Copy link

👍

@behackett
Copy link
Member

The problem with this change is that it makes various assumptions about the structure of the index documents returned by MongoDB and the structure of those documents change from server release to server release. I think a better idea would be to open a ticket against the server requesting a stable index document format that can be passed unaltered to the createIndexes command.

@behackett behackett closed this Dec 9, 2015
@estobbart
Copy link
Author

@behackett Thanks. My assumption was that consistency problem was wrapped by IndexModel.

@estobbart
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants