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

Delete application_piped_id index #4266

Merged
merged 3 commits into from
Mar 14, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pkg/datastore/mysql/ensurer/indexes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ CREATE INDEX application_project_id_updated_at_desc ON Application (ProjectId, U

-- index on `PipedId` ASC
ALTER TABLE Application ADD COLUMN PipedId VARCHAR(36) GENERATED ALWAYS AS (data->>"$.piped_id") VIRTUAL NOT NULL;
CREATE INDEX application_piped_id ON Application (PipedId);
-- TODO: Should remove that statement after few releases.
funera1 marked this conversation as resolved.
Show resolved Hide resolved
DROP INDEX application_piped_id ON Application;

-- index on `PipedId` ASC and `UpdatedAt` DESC
CREATE INDEX application_piped_id_updated_at_desc ON Application (PipedId, UpdatedAt DESC);
funera1 marked this conversation as resolved.
Show resolved Hide resolved
Expand Down