Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

perf: remove query cache in ingestion pipeline (#3882)

Max Deichmann4ab1cbd03c28
diff --git a/worker/src/services/IngestionService/index.ts b/worker/src/services/IngestionService/index.ts
index c4311499a0..8bdcef346d 100644
--- a/worker/src/services/IngestionService/index.ts
+++ b/worker/src/services/IngestionService/index.ts
@@ -581,7 +581,7 @@ export class IngestionService {
return await instrumentAsync({ name: `get-${table}` }, async () => {
const queryResult = await this.clickhouseClient.query({
- query: `SELECT * FROM ${table} WHERE project_id = '${projectId}' AND id = '${entityId}' ORDER BY updated_at DESC LIMIT 1`,
+ query: `SELECT * FROM ${table} WHERE project_id = '${projectId}' AND id = '${entityId}' ORDER BY updated_at DESC LIMIT 1 SETTINGS use_query_cache = false;`,
format: "JSONEachRow",
});