Skip to content

Commit 2afd6ec

Browse files
committed
improvement(knowledge): keep the Tin readiness hold at a minute
1 parent ba6f412 commit 2afd6ec

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎apps/sim/lib/knowledge/search/tin-keyword.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ const logger = createLogger('TinKeywordSearch')
1111

1212
/**
1313
* How long a readiness answer holds. The index only becomes valid once the projection is fully
14-
* backfilled, and never invalid again; the flag is checked on every search regardless, so a
15-
* long hold costs nothing but the one read it saves each search.
14+
* backfilled, and flipping the flag off takes effect within this window.
1615
*/
17-
const READINESS_TTL_MS = 10 * 60 * 1000
16+
const READINESS_TTL_MS = 60 * 1000
1817
const SEARCH_INDEX_TTL_MS = 10 * 60 * 1000
1918

2019
/**

0 commit comments

Comments
 (0)