Context
Follow-up work from docs/sync-optimization-ideas.md.
Current 10k trace sync timings:
| Run |
Initial Sync |
No-Op Sync |
| Final optimized merge projection |
5.80-5.88s |
~22-23ms |
Current representative profiled cost shape:
| Phase |
Time |
| Object load + OTEL conversion |
2.86-2.90s |
| Raw row normalization |
0.28-0.30s |
| Projection total |
~1.70s |
| Bookkeeping |
~0.002s |
Tasks
Acceptance Criteria
- Each task has before/after timing for the 10k trace perf run.
pnpm --filter @agentpond/duckdb test passes for each completed task.
pnpm test passes before closing the ticket.
- Update
docs/sync-optimization-ideas.md if implementation results change the recommended order or measured bottlenecks.
Context
Follow-up work from
docs/sync-optimization-ideas.md.Current 10k trace sync timings:
Current representative profiled cost shape:
Tasks
RawEventRowrecords for sync, skipping the intermediateIngestionEvent[]allocation where possible.eventJsonfromRawEventRowif no hot compatibility path depends on it.Acceptance Criteria
pnpm --filter @agentpond/duckdb testpasses for each completed task.pnpm testpasses before closing the ticket.docs/sync-optimization-ideas.mdif implementation results change the recommended order or measured bottlenecks.