status-go/protocol/migrations/sqlite/1610117927_add_message_cache.up.sql
Andrea Maria Piana e3969a7752 Cache waku messages
This commit re-introduces a feature that we lost during the migration to
status-go.
Messages are cached for a couple of days if processed correctly by
status-go, to avoid performance issues.
2021-01-18 09:38:27 +01:00

5 lines
142 B
SQL

CREATE TABLE IF NOT EXISTS transport_message_cache (
id VARCHAR NOT NULL PRIMARY KEY ON CONFLICT REPLACE,
timestamp INT NOT NULL
);