Skip to content

[Clone] Breaking change: Improve save() performance by skipping index creation #2719

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

bagerard
Copy link
Collaborator

Fixing conflict on top of #2702

ShaneHarvey and others added 4 commits October 27, 2022 15:51
Indexes are now only created when a Model is first used, eg the first
call to save() or on the first call to _get_collection(), or when the new
meta["auto_create_index_on_save"] option is set to True. This is a minor
breaking change for some applications. As a workaround apps can explicitly
call ensure_indexes() or set meta["auto_create_index_on_save"] to True.
…Harvey/mongoengine into shane_skip_index_creation_on_save
@bagerard bagerard force-pushed the shane_skip_index_creation_on_save branch from 8966c9a to 7094025 Compare December 30, 2022 20:06
@bagerard bagerard merged commit ae09e9b into MongoEngine:master Dec 30, 2022
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