Running notebooks
funcionalRun one cell, its stale inputs, everything or only what is out of date; what each state badge means, row limits, Fetch All and Stop.
A notebook knows which cells read which, so running is less about remembering the order and more about saying how much you want to run. SQLly works out the rest: what needs running first, what can reuse a result it already has, and what can run at the same time.
Run modes
La Ejecutar menu in the top bar has every mode; the common ones have buttons and keys too.
- Run Cell
- Runs the selected cell. A
{{name}}reference to a SQL cell on the same connection is folded into its query, so it needs nothing else; a cell that reads another cell's result (a chart's input, a copy in local data) uses that result as it is, and is blocked with a message if there is no current one. ⌘Return / Ctrl+Enter. - Run Cell and Stale Inputs
- Runs the cell's out-of-date inputs first (and theirs), then the cell. The top bar's Modo switch makes this what ⌘Return and the play button do.
- Ejecutar todo
- Every cell, in dependency order. ⌘⇧Return / Ctrl+Shift+Enter.
- Run Stale Cells
- Only cells that have never run or are out of date.
- Run Cell and Dependents
- The cell and everything that reads it, directly or through other cells.
- Run Cells Above
- Every cell above the selected one, not including it.
- Run Cell and Below
- The selected cell and every cell below it.
- Run Selected Cells
- The cells you picked with ⇧-click.
- Check Without Running
- Checks references, cycles, parameters and safety for every cell and runs nothing: "Checked 12 cells: no problems", or the problems in the activity panel.


When a run pulls in a cell you didn't name (an input of the cell you asked for), SQLly reuses that cell's result if it is still current instead of running it again; the activity panel says "Kept the current result". A cell you ask for by name always runs. Markdown, chart, table, pivot, KPI and formula cells don't query anything: they update on their own as soon as their input has a new result.
What the state badges mean
| Insignia | Significado |
|---|---|
| Not run | No result yet. |
| Checking | Being checked by Check Without Running. |
| Waiting | Waiting for the cells it reads to finish. |
| Queued | Ready, waiting for a free slot on its connection. |
| Waiting for review | A cell that changes data, waiting for you to answer the change review. |
| Running / Receiving rows | The query is running, or rows are arriving. |
| Up to date | The result matches the cell's current SQL, inputs, parameters and connection. |
| Cached | A saved result being reused, for example after a restart. See Saved results. |
| Out of date | The result on screen no longer matches what the cell would produce now. It stays visible, but it is never presented as current. |
| Parcial | The run stopped part-way (for example, you pressed Stop while rows were arriving). |
| Canceled | Stopped before it finished. |
| Failed | The query or computation returned an error. Failed SQL cells offer Explain with AI. |
| Bloqueado | Could not run because a cell it reads from failed, or the run was refused (untrusted notebook, connection not allowed, a read-only cell whose SQL writes). The reason is in the cell and the activity panel. |
| No disponible | This cell can't run here, for example a local data cell in the browser. |
How SQLly decides a result is out of date
Each cell's result is tied to a fingerprint of everything that produced it. When any part changes, the cell and every cell that reads it are marked Out of date. The parts are:
- Its SQL (or settings, for other kinds), compared token by token. Changing whitespace, letter case of keywords or ordinary comments does not count; changing a value, an optimizer hint or a
-- sqllydirective does. - The parameters it uses, by their typed values. Changing one parameter marks only the cells that use it, and the cells that read those.
- Its connection: the connection, database, the login it signs in with, the engine and the connection's safety settings. A result fetched by one login is never shown as current for another.
- Its safety policy: read-only, row and download limits, cache mode and session group.
- The cells it reads, through their own fingerprints.
Undo an edit and the result is current again, because the fingerprint matches once more. The inspector shows the fingerprint for the selected cell, and the History tab's run comparison says which part moved between two runs; see Run history and snapshots.


A result reused for a set time (the For a time cache mode) or after a restart is labelled as saved, not as freshly fetched: a time limit doesn't prove the data is unchanged.
Re-run on change
Notebooks run only when you ask, unless you switch on Re-run on change on the left rail's Parameters page. Then a parameter change re-runs the cells that compute in the notebook straight away and lines up the cells that query a database in an Aplicar bar, with their connections, so nothing hits a server until you press Apply. See Parameters and inputs.
When something fails
A failed cell blocks only the cells that depend on it. Independent cells in the same run keep going, so one broken query doesn't stop the rest of the notebook. Each blocked cell names the cell it was waiting for. Fix the failed cell and run again; Run Stale Cells picks up everything that was blocked.
- A cell that can't start at all (its connection isn't open, the run was refused) fails on its own the same way: its dependents are blocked and the rest of the run carries on.
- Asking for a cell again while a run is going (⌘Return on a cell that already finished, a parameter change, a dashboard Refresh) adds it to the run and runs it again, after anything it depends on.
- A failed or canceled cell keeps its last result on screen, marked as not current, and never turns back into Up to date on its own.
- A cell whose run returns no result set (a statement with no rows) shows no result, not the previous run's rows.
Cells that run at the same time
Cells that don't depend on each other start together: up to two at once per connection by default, and two at once on the notebook's local data. Change the per-connection number (1 to 4) with Cells at once per connection on the left rail's Local data page. Each cell has its own query, so one cell's error never cancels another, and Detener cancels them all (see Stop and cancel).
- A cell that changes data runs alone on its connection: cells before it finish first, and cells after it wait. That holds for cells asked for while the run is going, too.
- Cells that share a
session_group(set in the file) run one at a time, in notebook order, on one database session, so temporary tables and session settings carry from one to the next. - While a change review is waiting for your answer, no new cells start; the cells started with it go ahead once you confirm it. A review stays open when a query starts in another tab.


Row limits and Fetch All
Establecer Maximum rows in a cell's inspector (or max_rows y max_download_bytes in the file) and the query stops at that point, however large the limit, including results big enough to spill to disk: the grid says "Showing the first 100 rows: this cell's row limit stopped the query, so this result is incomplete." and offers Fetch All, which runs the cell once without the limit. A cut-short result is never presented as complete, and charts, KPIs and checks that read it say so.


Without a limit, a cell's result streams into its grid like a query tab's, and large results spill to disk. Cells that read another cell's rows (charts, tables, transforms, checks) work from a snapshot of up to 100,000 rows; when a result is bigger, they say how much of it they cover ("First 100,000 of 2,400,000 rows").
Stop and cancel
Detener in the top bar, Query ▸ Stop Notebook Run o Notebook: Stop Run in the palette cancels every running cell and clears the queue. That includes the queries profile, plan, related-row and sweep cells send, and cells on a relay connection. Cancel Query (⌘Esc / Shift+Esc), closing the notebook tab and disconnecting do the same. Cells that were stopped before finishing show Canceled; a cell that had started receiving rows shows Parcial. A change review a stopped cell was waiting on closes, so it can't be confirmed afterwards. There is no default key for the notebook's own Stop; you can bind one.
If a database ignores the cancel and finishes the query anyway, those late rows are thrown away: the cell stays Canceled, and nothing is added to its result or the run history.
Límites
max_download_bytescounts only the rows that reach the grid; once a result spills to disk, the byte limit isn't checked against the spilled part. Use Maximum rows for a hard stop.