Skip to content

Fix string operators like startswith not using an index because of the unicode regex flag #965 - #2937

Open
pawciobiel wants to merge 1 commit into
MongoEngine:masterfrom
pawciobiel:fix-965-regex-unicode-flag
Open

pawciobiel wants to merge 1 commit into
MongoEngine:masterfrom
pawciobiel:fix-965-regex-unicode-flag

Conversation

@pawciobiel

@pawciobiel pawciobiel commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Fix __startswith, __exact and the other string query operators not using indexes: they no longer send the u regex option that Python adds to every compiled str pattern

Fixes #965
Replaces #1692

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.

Regex search is extremely slow with python3

1 participant