2019-05-13 09:25:46 +00:00
|
|
|
CREATE TABLE envelopes (id BYTEA NOT NULL UNIQUE, data BYTEA NOT NULL, topic BYTEA NOT NULL, bloom BIT(512) NOT NULL);
|
|
|
|
|
|
|
|
CREATE INDEX id_bloom_idx ON envelopes (id DESC, bloom);
|
|
|
|
CREATE INDEX id_topic_idx ON envelopes (id DESC, topic);
|
2021-09-17 09:02:04 +00:00
|
|
|
CREATE INDEX topic_idx ON envelopes(topic);
|