1. fix index
This commit is contained in:
2026-04-02 15:56:26 +08:00
parent dc83cbece7
commit 0470a27418

View File

@@ -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 idx_app_channel_version ON release_version (app_type, channel_code, status, version_name DESC);
-- 后台管理系统页面索引 -- 后台管理系统页面索引
CREATE INDEX CONCURRENTLY idx_release_version_active_app_version CREATE INDEX CONCURRENTLY idx_release_version_active_semver
ON release_version (app_type, version_name, id DESC) ON release_version (
WHERE is_deleted = 0; (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版本发布管理表'; COMMENT ON TABLE release_version IS 'APP版本发布管理表';