Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Supabase 4 min read Release mediumAdept

Supabase Storage: major performance, security, and reliability updates

Supabase Storage replaces its trigger-maintained prefixes table with a hybrid skip-scan algorithm that derives folder structure at read time, and switches from OFFSET to cursor-based pagination, making deep pagination up to 14.8x faster on 60 million rows with no write penalty. The release also closes a file-backend path traversal bug and blocks direct SQL DELETEs on storage tables that orphaned S3 objects. It adds Postgres query cancellation on client disconnect, idempotent migrations verified by pg_dump comparison, a fix for a TUS S3 lock renewal race, and a move from prom-client to OpenTelemetry metrics. No code changes are required, though switching to the listV2 endpoint is recommended.

Related posts

  • Oriole joins Supabase

    Supabase easyNovice

    OrioleDB, a Postgres table storage extension built on the Table Access Method API, is joining Supabase to build a faster drop-in storage engine, advance pluggable storage upstream, and enable decoupled storage and compute. Oriole implements MVCC via an undo log instead of tuple versioning, with row-level WAL, lockless in-memory access, page-level compression (roughly 4-5x smaller databases), in-place updates that avoid bloat, and index-organized tables. Its reduced IO makes S3-backed Postgres feasible, with local caching synced asynchronously to object storage. Oriole still requires patches to Postgres, which Supabase plans to help upstream with no fixed timeline.

  • Supabase Storage v3: Resumable Uploads with support for 50GB files

    Supabase mediumAdept

    Supabase Storage v3 adds resumable uploads via the open TUS protocol, raising the max file size to 50GB on Pro plans. To scale tus-node-server across load-balanced instances without sticky sessions, Storage uses Postgres transactional advisory locks keyed on a hash of the object path, so only one server writes a given object's chunks to S3 at a time. The release also adds image quality and format transforms with WebP by default, a Next.js image loader, presigned upload URLs, and per-bucket size and MIME-type limits.

  • Storage is now available in Supabase

    Supabase mediumAdept

    Supabase Storage is an object store built as a custom TypeScript/Fastify API server behind Kong, with object metadata and access policies kept in each project's Postgres database and objects stored in S3. Existing servers like Minio, Ceph and Zenko were rejected because they couldn't use Postgres as their datastore, carried features unnecessary on managed backends, and didn't map to Supabase Auth. Authorization uses Postgres Row Level Security on a storage.objects table: if a user can select or delete the row, they can read or delete the object, so policies are written in SQL and listing filters happen in the database. Uploads stream through Node streams to S3 with minimal buffering, trading off knowing the object size upfront, and objects get a default 1-hour Cache-Control header.

  • OrioleDB public beta: a Postgres storage engine for update-heavy tables

    Supabase mediumAdept

    OrioleDB, an open-source Postgres storage engine plugged in via the Table Access Method, is now in public beta on all Supabase plans. It replaces the heap with an undo log instead of dead tuples, 64-bit transaction IDs, index-organized tables where secondary indexes point to the primary key, lock-free page reads without buffer mapping, and copy-on-write checkpoints with row-level WAL, which removes most VACUUM and bloat problems on update-heavy tables. On a TPC-C-derived DBArena benchmark with data four times larger than memory, it delivered about 1.8x the throughput of heap Postgres on a 32 vCPU instance, but gains shrink for in-memory, read-mostly workloads and heap was ahead at the smallest size. It is not production-ready: no PITR, it must be chosen at project creation, and non-B-tree indexes such as pgvector HNSW run through an experimental bridge.

  • Supabase is now on Postgres 13.3

    Supabase easyNovice

    New Supabase projects now run Postgres 13.3 (up from 12.0), bringing native gen_random_uuid, parallel index vacuuming, incremental sorting and smaller B-tree indexes. Supabase Postgres versioning now tracks upstream major/minor versions, and Postgres is built from source so ARM Graviton 2 instances can use Large System Extensions (LSE) for faster atomics and locking, with pgbench comparisons on m6gd.8xlarge. The release also moves to Ubuntu 20.04, adds the pgRouting and wal2json extensions, configures fail2ban on ports 5432 and 6543 (10-minute ban after three failed attempts), and previews PgBouncer/PostgREST marketplace bundles.

The quest for software engineering knowledge.

Look:
Layout: