# Preview branches, a new SQL console and faster cold starts

Nov 11, 2026 · v5.0.0 · feature · improved · breaking

This release is about **shipping safely**: every pull request can now get its own _preview branch_, the SQL console was rebuilt from scratch, and functions start up to 3× faster. Read the [branching guide](https://example.com/docs/branches) to get started.

## Preview branches

Open a pull request and a branch with its own database, storage and API keys is created for it. Merge or close the pull request and the branch is removed.

*   Seeds from `supabase/seed.sql` on every new branch
*   Migrations run in order, and the branch fails fast if one breaks
    *   The failing migration and its error show in the pull request
    *   Nothing is applied to production until you merge
*   Branches pause after **7 days** without activity

> **Note:** Preview branches are billed like any other project while they run.

> \[!TIP\]  
> Install the CLI once and every command below works from any folder.

```bash
npm install -g ollum
```

```
$ npx ollum login
```

### Turn it on

1.  Connect the GitHub repository under _Project settings_.
2.  Enable **Preview branches** and pick the folder with your migrations.
3.  Open a pull request. The branch link appears as a check:
    1.  Click **Details** on the check
    2.  Copy the branch URL into your preview environment

```bash
npx ollum branches create --from main --name feature/billing
npx ollum branches list --format json | jq '.[] | {name, status, created_at, database_url, api_url, anon_key_prefix, region}'
```

## A new SQL console

The console now keeps your history per project, formats queries with Ctrl + Shift + F, and explains slow queries.

```sql
select p.id, p.slug, count(e.*) as releases
from projects p
left join changelog_entries e on e.project_id = p.id and e.status = 'published'
group by p.id
order by releases desc
limit 20;
```

> We rewrote the console because the old one dropped long results. It now streams rows, so a 100,000-row result no longer freezes the tab.
> 
> — The platform team

### Keyboard shortcuts

Action

Windows / Linux

macOS

Notes

Run query

Ctrl + Enter

⌘ + Enter

Runs the selection when there is one

Format

Ctrl + Shift + F

⌘ + Shift + F

Uses your saved style

Explain

Ctrl + E

⌘ + E

Shows the plan with timings for every node in the query tree

## Faster cold starts

Functions now start from a snapshot. Median cold start dropped from **410 ms** to **140 ms**; p99 from 1.8 s to 520 ms.

![Cold start times before and after](/api/og)

![Chart](/api/og)

Median cold start per region, before and after snapshots.

> Warning: Functions deployed before 1 November must be redeployed to pick up snapshots.

> \[!IMPORTANT\]
> 
> Snapshots are taken at deploy time, so top-level code must not read request data.

> Breaking: The `--legacy-runtime` flag is removed.

```ts
import { serve } from "ollum/functions";

const cache = new Map<string, Response>();

export default serve(async (request) => {
  const url = new URL(request.url);
  const hit = cache.get(url.pathname);
  if (hit) return hit.clone();

  const upstream = await fetch(`https://api.example.com${url.pathname}`, {
    headers: { authorization: request.headers.get("authorization") ?? "" },
  });
  const response = new Response(upstream.body, upstream);
  response.headers.set("cache-control", "public, max-age=60, stale-while-revalidate=600, stale-if-error=86400");
  cache.set(url.pathname, response.clone());
  return response;
});
```

#### Breaking changes

*   The `--legacy-runtime` flag is removed. Use `--runtime=node22` instead.
*   Environment variables over 4 KB are rejected at deploy time.

* * *

Inline image ![og](/api/og) sits in text.

Small print: H2O, E = mc2, RLS stays on by default, and a very long link that must wrap: [https://example.com/docs/functions/runtime/snapshots/cold-start-improvements-november-2026-release-notes](https://example.com/docs/functions/runtime/snapshots/cold-start-improvements-november-2026-release-notes)
