Data agents calling one tool per table are the N+1 problem again, says dosco

dosco · x · 2026-12-06

dosco argues that data agents calling one tool per table are the classic N+1 query problem redux — except the model now plays the ORM's role, and you pay in tokens for every round trip. In his project deeporg, the agent instead writes a single GraphQL query, which a compiler turns into one SQL query, collapsing multiple tool calls into one.

Original post →

More from coding & agent

coding & agent channel →