Skip to content

buildCompactKeepersSQL

buildCompactKeepersSQL(tableName, cutoffT, targetOldRows): string

Defined in: db/store.ts:113

Build SQL to create a temp table of “keeper” t values from old data. Uses NTILE to divide old rows into equal-count buckets, keeping the earliest t (MIN) from each bucket as the representative point.

string

number

number

string