Skip to content

Added availability for passing iterable objects to create_index/ensure_index methods - #196

Closed
vintozver wants to merge 1 commit into
mongodb:masterfrom
vintozver:master
Closed

vintozver wants to merge 1 commit into
mongodb:masterfrom
vintozver:master

Conversation

@vintozver

Copy link
Copy Markdown

No description provided.

@behackett

Copy link
Copy Markdown
Member

@vintozver , order of keys is critical for compound key indexes. Many types that do not preserve order can return an iterator using iter(). Two obvious examples would be dict and set. If a user passed an type that does not preserve order for key_or_list the results would likely be incorrect.

What problem are you trying to solve with this change?

@ghost ghost assigned behackett Aug 29, 2013
@skazhy skazhy mentioned this pull request Sep 10, 2013
@behackett

Copy link
Copy Markdown
Member

@vintozver, I'm going to close this pull request. I hope my previous explanation makes sense. Please let me know if I've misunderstood what you intend here.

@behackett behackett closed this Sep 19, 2013
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.

2 participants