B1 服务端自动挑剖析表不再挑中一批空表:候选里还有待核实(推断)关系的表排在前面,再按使用次数、表结构顺序;挑表时先估行数,确知是空表的跳过并记进 empty_tables(最多估 30 张、最多用掉查询次数上限的一半),估行数的查询算进这张表的查询数;候选全是空表时说明写明是空表

This commit is contained in:
ThearchyHelios
2026-10-04 02:03:36 +08:00
parent 661f6a38d7
commit 99ca98a87d
4 changed files with 125 additions and 9 deletions
+5
View File
@@ -2943,6 +2943,11 @@ export interface CatalogProfileOut {
stopped: CatalogProfileStop | null
tables: CatalogProfileTable[]
total: { added: number; updated: number; removed: number }
/**
* 不指定表时,挑表途中估过行数、确知是空表而跳过的表(老后端没有这个键;指定了表时是空列表)。
* 估行数的查询算在 queries_used 里,不算在各表的 queries 里
*/
empty_tables?: string[]
/** 一张表都没有剖析时的说明 */
note: string | null
}