feat(metadata): P1-5 DDL 索引增强(现代层后置,不改引擎)+ MetaController 接线

IndexEnhancer 建表后按元数据补 CREATE INDEX IF NOT EXISTS:外键(REFERENCEID=36位
uuid)列 + UPDATETIME 审计列;跳过 ISIDENTIFIER/ISCOMBIDENTIFIER(引擎已建 unique);
索引名截断到 PG 上限 63。BacklogIndexScriptGenerator 为存量实体只生成脚本落盘不执行
(客户库执行排切流期变更窗口)。MetaController 接入:createEntity 自动补索引 + 失效缓存、
dropEntity/新增 evict、backlog-index 端点。metadata pom 加 Caffeine(白名单+POInfo缓存)。
单测 6 个。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-06-11 12:11:02 +08:00
parent 4c9af8edd4
commit 3fa970adbf
5 changed files with 402 additions and 1 deletions

View File

@@ -17,6 +17,8 @@
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency>
<dependency><groupId>org.springdoc</groupId><artifactId>springdoc-openapi-starter-webmvc-ui</artifactId></dependency>
<dependency><groupId>com.networknt</groupId><artifactId>json-schema-validator</artifactId></dependency>
<!-- P1-3 标识符白名单缓存 / P1-4 POInfo 缓存:进程内本地缓存,版本走 Spring Boot BOM(3.1.8) -->
<dependency><groupId>com.github.ben-manes.caffeine</groupId><artifactId>caffeine</artifactId></dependency>
<dependency><groupId>com.fasterxml.jackson.datatype</groupId><artifactId>jackson-datatype-joda</artifactId></dependency>
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><scope>test</scope></dependency>
</dependencies>