You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use electric on a table that is partitioned:
createtableruns (
id bigint,
task_id bigintnot null,
payload text,
status text,
created_at timestamp with time zone default now(),
primary key (id, created_at)
)
partition by
range (created_at);
createtableruns_2023 partition of runs for
valuesfrom
('2023-01-01') to ('2024-01-01');
createtableruns_2024 partition of runs for
valuesfrom
('2024-01-01') to ('2025-01-01');
If you try and subscribe to a shape using the run table, the following error occurs:
Since queries against the runs table (SELECT * FROM runs) works across partitions, it seems like it should be possible for electric to perform the same "magic".
Currently, electric does work if the partition table name is used instead of the parent table (e.g. runs_2024), but then unfortunately shapes cannot really travel across partitions. This could be a real issue if partitions are small (e.g. every minute).
The text was updated successfully, but these errors were encountered:
When trying to use electric on a table that is partitioned:
If you try and subscribe to a shape using the
run
table, the following error occurs:Since queries against the
runs
table (SELECT * FROM runs
) works across partitions, it seems like it should be possible for electric to perform the same "magic".Currently, electric does work if the partition table name is used instead of the parent table (e.g.
runs_2024
), but then unfortunately shapes cannot really travel across partitions. This could be a real issue if partitions are small (e.g. every minute).The text was updated successfully, but these errors were encountered: