🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
perf: avoid updates on session ingest (#9392)
Steffen Schmitzab2007a6276f
diff --git a/worker/src/services/IngestionService/index.ts b/worker/src/services/IngestionService/index.tsindex 9a326b0cd3..640ccb601e 100644--- a/worker/src/services/IngestionService/index.ts+++ b/worker/src/services/IngestionService/index.ts@@ -443,10 +443,7 @@ export class IngestionService {INSERT INTO trace_sessions (id, project_id, environment, created_at, updated_at)VALUES (${traceRecordWithSession.session_id}, ${projectId}, ${traceRecordWithSession.environment}, NOW(), NOW())ON CONFLICT (id, project_id)- DO UPDATE SET- environment = EXCLUDED.environment,- updated_at = NOW()- WHERE trace_sessions.environment IS DISTINCT FROM EXCLUDED.environment+ DO NOTHING`;} catch (e) {logger.error(