From f5f2b60700a6a2464156fc79ef1ab67033ae5444 Mon Sep 17 00:00:00 2001 From: Riccardo Berto Date: Wed, 24 Feb 2021 10:27:18 +0100 Subject: [PATCH] index on training_data(training_id) --- init.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.sql b/init.sql index 2a5ef58..6149074 100644 --- a/init.sql +++ b/init.sql @@ -15,4 +15,5 @@ create table if not exists training_data( distance float not null, kcal int not null, constraint fk_training_id foreign key(training_id) references training(id) on delete cascade -); \ No newline at end of file +); +create index if not exists idx_training_data_training_id on training_data(training_id); \ No newline at end of file