Skip to content

Inquiry about primary key support for Views — update operations not recognized in subscriptions #4148

@GEFNENEN

Description

@GEFNENEN

Hi SpacetimeDB team,

I'm using SpacetimeDB for real-time game state sync, and I've run into an issue with View subscriptions: because Views lack primary keys, the client SDK can't pair insert+delete operations as updates. This means onUpdate callbacks never fire—we only get separate insert and delete events.

I understand Views currently don't support primary keys by design, and I've heard there might be plans to add this in the future. Could you share:

  1. Is primary key support for Views still on the roadmap? Any rough timeline or current status?
  2. If it's not coming soon, do you have any recommended workarounds for subscription scenarios that need proper update detection?

My use case involves pushing aggregated multi-table data via Views to clients, where distinguishing actual updates (vs. separate insert/delete pairs) matters for smooth gameplay.

This limitation is currently blocking a clean implementation for real-time game state sync. I'd really love to see primary key support for Views land soon—it would make Views truly viable for reactive applications. Fingers crossed it's high on the priority list! 🙏

Thanks for your work on SpacetimeDB—appreciate any insight you can share! 😊

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions