Skip to content
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

Add support for partial indexes and concurrent indexes in postgres #793

Merged
merged 6 commits into from
Dec 27, 2024

Conversation

markstory
Copy link
Member

Add support for CREATE INDEX CONCURRENTLY in postgres. This is an important feature for deploying indexes without downtime. I've also added support for partial indexes via CREATE INDEX ... WHERE which is supported in postgres, sqlserver and sqlite. I've only implemented SQL fragment support for WHERE clauses on indexes as supporting QueryExpression objects was complicated because cakephp/database doesn't expose good APIs for compiling expressions into SQL fragments with parameters inserted.

concurrent indexes are critical to supporting zero downtime migration
workflows with postgres.
implement partial indexes in postgres, sqlite and sqlserver
@markstory markstory merged commit 81604f9 into 4.next Dec 27, 2024
20 checks passed
@markstory markstory deleted the index-improvements branch December 27, 2024 23:44
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