Menu

1 / 4

Making a Trino lake as fast as a SQL database

DEV Community: database·Muhammad Mairaj·16 days ago
#dnQFALL0
#devtodatabase#devto#dev#seconds#table
Long article (1350 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.