- Well , the idea is that it may be a delete/update by a date range for example. An example is , table myfolks holds participants info for specific events for say 3 years. And before I start the 4th year, I need to move the data for the oldest year. I can do this either by specifying date only in the where clause or by specifying person_id from an IN list generated by a select based on date, but is this supported (did not see but I could have missed it as well) ? Or is this supported in CitusDB ? It can be any criteria for real . And speaking of time distribution , can one use a composite shard key ?
- Also since I can not truncate the table, I was using a delete to trash the data which I had no use for. I know not the most efficient way but not a whole lot of choice either
CREATE TABLE person
(
person_id bigint NOT NULL,
first_name character varying(64),
middle_name character varying(64),
last_name character varying(64),
title character varying(64),
prefix character varying(64),
suffix character varying(64),
CONSTRAINT person_pkey PRIMARY KEY (person_id)
)
;
4 shards on 2 workers
Thanks
Armand