Skip to content

A latency budget for AI analytics: from question to decision

Updated 6 min readFor data engineers and platform owners running AI analytics

An AI analytics latency budget should cover the whole path from question to a decision a person can make, including planning, warehouse queueing and execution, checks, the answer, and human review. Set the target from the workflow, so that a live meeting and a weekly report get different budgets. Report percentiles over a realistic set of questions, since averages hide the slow answers people remember, and small pilot samples make high percentiles unreliable. Often the largest cost is reconciliation time after the answer arrives.

Start from the workflow, then derive the number

A universal target of some number of seconds is meaningless. Someone asking a question live in a pipeline review has until the room moves on. Someone preparing a Monday report has an hour and cares more about whether they trust the result. Write down, for two or three real workflows, the point at which waiting stops work.

Human limits give you a reference. Nielsen’s long-standing guidance places the limit of keeping a person’s attention at about 10 seconds, beyond which people need a progress indicator and a way to cancel, and will need to reorient when they return. Few agentic analytics answers finish that quickly on hard questions. So for most products the design question is what the person sees during those seconds, and whether they can trust that work is under way.

A budget by stage

A budget gives each stage an allowance and shows which one to work on. Here’s a synthetic example with invented numbers, for a single slow-path question. Swap in your own measurements and look at the shape. Most dashboards omit the last bar.

Planning and context12 sWarehouse resume and queue9 sQuery execution6 sChecks and answer8 sHuman reconciliation240 sPlanning and context12 sWarehouse resume and queue9 sQuery execution6 sChecks and answer8 sHuman reconciliation240 s
Synthetic numbers, invented for illustration. Machine stages total 35 seconds, while checking the number by hand takes four minutes, so better evidence can beat a faster model.

Read the warehouse stages from the warehouse

Teams often blame the model for time spent waiting on compute. In Snowflake, the ACCOUNT_USAGE QUERY_HISTORY view separates these for you, in milliseconds: compile time, time queued while a warehouse provisions or resumes, time queued because a warehouse is overloaded, and execution. Setting a query tag at session level lets you isolate assistant traffic. The view can lag by up to 45 minutes, which is fine for this analysis and useless for live alerting.

Each of those columns points at a different fix. High provisioning queue time on the first question of the morning suggests a warehouse resuming from suspension, and users experience it as the assistant being slow every day at nine. Overload queueing suggests concurrency, and more sizing or isolating assistant traffic. Long execution suggests the query or its model. Row access policies add their own cost: Snowflake’s documentation says aggregates such as COUNT(*) lose statistics shortcuts and must scan, so the same question can legitimately run slower under a policy.

SELECT DATE_TRUNC('day', start_time) AS day,
       COUNT(*) AS queries,
       APPROX_PERCENTILE(total_elapsed_time, 0.5) / 1000 AS p50_s,
       APPROX_PERCENTILE(total_elapsed_time, 0.95) / 1000 AS p95_s,
       AVG(compilation_time) / 1000 AS avg_compile_s,
       AVG(queued_provisioning_time) / 1000 AS avg_queue_resume_s,
       AVG(queued_overload_time) / 1000 AS avg_queue_load_s,
       AVG(execution_time) / 1000 AS avg_exec_s
FROM snowflake.account_usage.query_history
WHERE query_tag = 'ai-assistant'
  AND start_time >= DATEADD(day, -14, CURRENT_TIMESTAMP())
GROUP BY 1 ORDER BY 1;

Averages lie, and so do small samples

Google’s SRE book makes the standard point: a service averaging 100 ms can still have 1 percent of requests near 5 seconds, so measure the distribution. It also shows how tails compound, since a page that calls many backends can see one backend’s 99th percentile become its typical response. An AI answer is much like that page. It may run several tool calls and queries, and the slowest governs what the person waits for.

Now the caution for pilots. With a synthetic pilot of 40 timed questions, the 95th percentile is effectively the second or third slowest answer. Do not report that as if it were a stable service level. Publish the raw list with the reason for each outlier, and hold percentile claims until you have real volume. Also count the first question after idle, a burst during a busy period, and a follow-up separately, because a benchmark with one user and a preselected question measures only itself.

Where the seconds go in agentic answers

A system that explores tools before answering has a cost profile that differs from a dashboard. A few patterns recur, and each has a different remedy.

  • Treat a timeout as its own stateAn incomplete operation must never look like a completed answer. Say that nothing was produced, and whether retrying is likely to help.
  • Put limits on scansA conversational interface should not turn each exploratory request into a full scan to look thorough. When a limit bites, say so, so the reader knows the result is partial.
SymptomLikely causeWhat to try
Slow first question each morningWarehouse resumingCheck provisioning queue; review suspend settings against cost
Time grows with schema sizeToo much context per stepRetrieve less, and narrow by domain
Variable, sometimes very slowRetries after failed checksCount attempts per answer; improve context on the common failure
Slow only for certain rolesPolicy evaluation or mapping-table lookupsReview policy design; do not switch to a common integration login
Fast answers, but people still waitReconciling by handShow definitions, filters and tables on the answer
Duplicate questions in logsNo visible progressShow current state, and offer a cancel

Count the human part

Measure time to a usable decision by observing people. Sit with a few users for a week’s real questions and time from asking until they stop checking and act on it, or abandon the answer. An instant answer that sends someone to reconcile against a report may be slower overall than a 30-second answer with its definition, filters and tables already shown.

This changes which investment wins. Teams that only instrument machine time will spend their budget shaving seconds off planning. If your own version of that bar chart looks similar, invest in evidence on the answer and in approved definitions, which reduce checking. Record user-visible wait and validation time as separate columns, and compare both with the existing process for the same questions, which is often a ticket and a three-day wait.

Set the envelope with cost beside it

Speed has a price, in warehouse capacity kept warm or in a different model. Write the budget with cost next to it, per workflow, and have the owner sign off. A synthetic example of the format: live review, p50 under 30 seconds and p95 under 90, warehouse kept warm in meeting hours only; weekly reporting, under five minutes, no extra capacity. Do not buy performance a workflow does not need, and do not accept savings that make it fail during the quarter-end review.

After any change of model, source or policy, rerun the same timed set. A model change can move latency and accuracy together, so read them on the same run.

Checking this in a Nexatron pilot

We publish no response-time figure for you to rely on here, and any single fast demo is a curiosity. In a Nexatron session, bring one straightforward question and one realistic follow-up under real roles, tag or identify the queries, and read the warehouse timing yourself using the sketch above. The answer shows generated SQL or SOQL and a trust panel with what was used and left out. Time your own checking against that.

Repeat it with the warehouse cold. I’d only trust a budget measured on your own warehouse and questions.

Bring three business questions

Explore your sources, definitions, and review criteria with our team. Please keep credentials and sensitive records out of the inquiry.