From 1019ea1ed341e3a7769c046aa0be5764789360b6 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 2 Jun 2024 14:38:13 +0200 Subject: Migrate to Rust and Hyper With sanic, downloading a file locally is around ten times slower than with Rust and hyper. Maybe `pypy` could have helped, but I didn’t succeed to set it up quickly with the dependencies. --- init-db.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'init-db.sql') diff --git a/init-db.sql b/init-db.sql index 57afd00..bbfe6c7 100644 --- a/init-db.sql +++ b/init-db.sql @@ -1,7 +1,7 @@ CREATE TABLE files( id TEXT PRIMARY KEY, + created_at STRING NOT NULL, + expires_at STRING NOT NULL, filename TEXT NOT NULL, - created TEXT NOT NULL, - expires TEXT NOT NULL, content_length INTEGER NOT NULL ) -- cgit v1.2.3