create table f (id serial primary key, did text, padding text);
create table d (id text, r double precision, padding text);

insert into f select i, md5((1+mod(i,ROWS_DIM))::int::text)::uuid, md5(i::text) from generate_series(1, ROWS_FACT) s(i);
insert into d select md5(i::text)::uuid, random(), md5(random()::text) from generate_series(1, ROWS_DIM) s(i);

alter table f set (parallel_workers = 4);

vacuum;
vacuum freeze;
analyze;
checkpoint;
