Hex
AI / ML EngineerAppliedAug 6, 2026

Optimize app SQL to lower bytes scanned

Convenient analytical requests can hide expensive paths through connected data.

Efficiency improvements need to preserve the flexibility that made an app useful in the first place.

The app looks simple to everyone else, but one vague question can burn through our query budget.

Lotanna Nyarko · Analytics Engineer

Maintains warehouse-backed internal apps used by finance and operations teams.

What pulls against what

  • warehouse cost vs. answer usefulness
  • portable behavior vs. warehouse-specific optimization
  • fewer scans vs. exploratory flexibility
  • rapid mitigation vs. durable model learning

What is at stake

Inefficient generated SQL makes interactive apps expensive to operate. The right improvement must reduce scans without narrowing useful questions

Why Hex

At Hex, this often matters where interactive apps place repeated demand on customer data platforms.

Written for

LLM systems engineerData-aware ML practitionerPerformance-minded applied scientist

This is the setup. The work is inside.

Running it puts you in the room: the full situation and its constraints, stakeholders who push back in their own words, and the decisions that are yours to make. What you produce becomes a Day One Plan — work you can show someone instead of describing.