remove caching in database for performance reasons

This commit is contained in:
2025-01-07 10:14:16 +01:00
parent 9e7188be4f
commit d5f934783b
6 changed files with 123 additions and 173 deletions

View File

@@ -0,0 +1,14 @@
-- +goose Up
-- +goose StatementBegin
DROP TABLE IF EXISTS responses;
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
CREATE TABLE responses (
url VARCHAR(255) NOT NULL UNIQUE PRIMARY KEY,
content BYTEA NOT NULL,
fetchDate TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
processed BOOLEAN DEFAULT FALSE
);
-- +goose StatementEnd