Photo by Joshua Kettle on Unsplash
Moving analytics data from a SQL database to a lake usually comes with a quiet assumption: you will pay for cheap, unlimited storage with slower answers. I tested that assumption end to end, with an AI agent that answers business questions over synced SaaS data, and the result surprised me. With four fixes, full answers on the lake took the same time as on the database. The biggest fix had nothing to do with Trino's speed.
The setup, in one breath
The data is CRM and accounting records, copied by a managed ingestion service into Iceberg tables on Azure storage (ADLS). Iceberg is an open table format: plain files plus a small "description file" per table saying which files make up the table right now. A hosted Polaris catalog keeps the list of where each table's description lives. Trino is the query engine that reads all of it. The comparison point is the same data in Azure SQL.
The agent doesn't run one query per answer.…