Skip to content

Two people, one record: how edits don't overwrite each other

If a record changed underneath you, the write is refused and you see the latest instead. The message on screen, and if_updated_at and 409 over the API.

Updated November 2026

This page is about a failure that nobody notices when it happens. Two people open the same order and both edit it. The second save erases the first, and no one finds out until the invoice is wrong. Tabla does two things about it. It keeps everyone's screen current, and it refuses a write that would overwrite something its author never saw.

Live updates from teammates

Each table you have open receives a live stream of changes from the server. When a teammate edits, creates, deletes or restores a record, the change appears in your grid without a reload, and your scroll position, selection and loaded records stay where they were. If the connection drops and comes back, the grid reloads once, so a gap in the connection can't leave you looking at stale records.

The same goes for everything around the records. When someone changes a shared view (tightens its filter, re-sorts it, adds or renames a view), your screen follows within a moment, so the same view name never shows two people different records. A new or renamed table, a change to the database's name or color, and a change to your own role arrive the same way. If you're typing in a cell, a field or a filter at the time, the change waits until you're done. As a viewer, you keep a view you've rearranged for yourself until you reload.

Most of the time that is all that happens. You rarely collide with anyone, because you're rarely looking at something out of date.

You can also see where everyone is before it comes to that. A cell a teammate has selected has a ring in their color and their face on it, and the cell they are typing in has a tint as well (see who else is in the table).

When two edits conflict

Every edit you make is sent with a token, which is the record's updated_at as your screen last saw it. The server compares the token to the record's current state as part of the write itself. If a teammate saved a different field of that record in the meantime, the grid and the record panel send your edit again with the new token and it saves, without overwriting anything of theirs. If they changed the same field, your write is refused. At the same moment the grid takes on the record's current values and the message says

Changed elsewhere — showing the latest. Edit not saved. Try again.

The value you typed is gone, which is how it is meant to work. The screen now shows what is saved, and if your change still makes sense against it, making it again takes a second. There is no merge dialog, no lock and no "which version wins" screen. The write that loses is refused right away, with a message, and it costs little to redo.

The same check covers deletion. Editing a record that someone else has moved to the trash gets you "This record is in the trash. Edit not saved." and the record leaves your grid. It also covers undo. An undo that would overwrite a teammate's newer edit is skipped, because an undo is a write like any other.

Over the API

API callers can use the same token, and they opt in per record. Send if_updated_at (the updated_at you last read) with an update. If the record has changed since then, the whole batch is refused with a 409, and the response body includes the records as they are now, so your integration can correct itself without a second request:

{
  "error": {
    "code": "conflict",
    "message": "1 record changed since it was loaded.",
    "records": [
      { "id": "rec_5nwstwqxss6r", "updated_at": "2026-08-09T22:18:11.426Z",
        "created_at": "2026-08-09T22:18:11.381Z", "fields": { "…": "…" } }
    ]
  }
}

Without if_updated_at, an update is plain last-write-wins, the same as it has always been. The full contract is in the API reference, and writing records over the API shows it in use.

Over the API, if_updated_at still guards the whole record, so a write sent with an old token is refused even when a teammate changed a different field. In the grid and the record panel, only a change to the same field is refused.

Webhooks

A webhook on the table fires for every saved change, whoever made it: you, a teammate, an API key, an undo. There is no "my edits only" filter. The webhook's ledger records what happened to the data, not who made the change. (Conditions can narrow which changes a webhook fires for. See webhook conditions.)

The questions people ask

Does Tabla lock a record while someone edits it? No. Nobody waits for anybody. When a write arrives second against a record that has changed, that write is the one refused, and its author is told. A lock would also stop the overwrite, but it makes people wait without telling them why.

Can I see who made the change I collided with? Yes. The record's Activity column shows who changed which field and what the value was before. See Comments and activity.

Do my own two tabs collide? They can, by the same rules, since each tab is its own "session." The same live stream keeps them current with each other, the way it does for two colleagues. They don't mark each other's cells, though, because presence counts both tabs as you.

About Tabla

Tabla is a no-code database with Postgres underneath. Every feature is on every plan, you get a million records per database, and you can export your whole database in one file any day.

More guides