electric-sql/electric

Feature request: document why a shape handle might get deleted

Open

#2,680 opened on May 6, 2025

View on GitHub
 (1 comment) (1 reaction) (0 assignees)Elixir (329 forks)batch import
documentationgood first issuehelp wanted

Repository metrics

Stars
 (10,155 stars)
PR merge metrics
 (Avg merge 3d 16h) (149 merged PRs in 30d)

Description

Is your feature request related to a problem? Please describe. People wonder why shapes get deleted. Especially if they have very large shapes as recreating and reloading them into clients can get expensive.

If they understand why it's happening, they might be able to reduce how often shapes are recreated by e.g. preserving their shapes logs when restarting their Electric instance.

Describe the solution you'd like Document the reasons for shape deletions:

  1. the server is restarted and loses all its shape logs
  2. pg has an error of some sort that isn't recoverable so electric deletes all the shapes
  3. probably most common, there's a schema change to the table the shape uses so the log is missing the new data

Contributor guide