Skip to content

Add support for AddEmbeddedIndex#16

Closed
timgraham wants to merge 1 commit into
mongodb-6.0.xfrom
add-embedded-index
Closed

Add support for AddEmbeddedIndex#16
timgraham wants to merge 1 commit into
mongodb-6.0.xfrom
add-embedded-index

Conversation

@timgraham
Copy link
Copy Markdown
Collaborator

This feature is in the exploration stage. This should not be considered anything more than a very early proof of concept. Obviously, we cannot patch Django like this, but it gives an idea of how easily such changes could be made in an autodetector subclass. The custom migration operations are added in django/db/migrations/operations/models.py for expediency of this POC. Obviously, they would live in django_mongodb_backend.

@timgraham
Copy link
Copy Markdown
Collaborator Author

This work likely won't be used since we're instead going with the top-level indexing approach (mongodb/django-mongodb-backend#376), however, a similar strategy may be needed if we want to track other changes like add/remove field on embedded models.

@timgraham timgraham closed this Jan 22, 2026
@timgraham timgraham deleted the add-embedded-index branch January 22, 2026 15:31
@timgraham timgraham restored the add-embedded-index branch March 12, 2026 23:02
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.

1 participant