update:
1. fix index
This commit is contained in:
@@ -27,9 +27,14 @@ CREATE TABLE release_version
|
||||
CREATE INDEX idx_app_channel_version ON release_version (app_type, channel_code, status, version_name DESC);
|
||||
|
||||
-- 后台管理系统页面索引
|
||||
CREATE INDEX CONCURRENTLY idx_release_version_active_app_version
|
||||
ON release_version (app_type, version_name, id DESC)
|
||||
WHERE is_deleted = 0;
|
||||
CREATE INDEX CONCURRENTLY idx_release_version_active_semver
|
||||
ON release_version (
|
||||
(string_to_array(version_name, '.')::int[]) DESC,
|
||||
app_type,
|
||||
id DESC
|
||||
)
|
||||
WHERE is_deleted = 0
|
||||
AND version_name ~ '^\d+\.\d+\.\d+$';
|
||||
|
||||
-- 添加表注释
|
||||
COMMENT ON TABLE release_version IS 'APP版本发布管理表';
|
||||
|
||||
Reference in New Issue
Block a user