Skip to content

SubscriptionTiming

SubscriptionTiming = "eager" | "lazy"

Defined in: packages/contracts/src/config.ts:46

Subscription timing for a synced table (ADR-0021): when its Electric shape subscribes.

  • eager (default) โ€” subscribed in the boot set, as today.
  • lazy โ€” excluded from boot; subscribed on first query-reference. With persistent retention, first use is a one-time ignition that promotes the table to a normal eager table for subsequent sessions; with ephemeral retention it is session-scoped.

A property of the consistency group: every table sharing a consistencyGroup must agree, since a group commits atomically on one MultiShapeStream and cannot be partly lazy (ADR-0021 ยง4).