Skip to content
This repository was archived by the owner on Aug 9, 2026. It is now read-only.
This repository was archived by the owner on Aug 9, 2026. It is now read-only.

resolve potential thread locks in Dexie.js during high-frequency WebSocket streams #7

Description

@itsVentie

Description

With the introduction of Groups and Public Channels, rapid execution of the background dual-fetch strategy (GetMessages) coupled with incoming Supabase/PostgreSQL real-time INSERT sockets can lead to write-contention or brief rendering freezes inside the Dexie.js message vault.

Todo

  • Refactor message batch ingestion routines inside the frontend storage hook to utilize database transactions (db.transaction('rw', ...)).
  • Implement a brief debounce window (~50ms) for DOM re-paints when updating the active message buffer slice from IndexedDB.
  • Ensure that plaintext payload processing occurs entirely in decoupled execution tracks before updating the reactive state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions