SELECT COUNT(*) FROM visits where animal_id = 4;
Added index on the animal_id column in the visits table.
CREATE INDEX animal_id ON visits (animal_id);
SELECT * FROM visits where vet_id = 2;
Added index on both the animal_id and vet_id columns in the visits table.
CREATE INDEX vet_animal ON visits (vet_id, animal_id);
SELECT * FROM owners where email = 'owner_18327@mail.com';
Added index on email column in the owners table.
CREATE INDEX email_id ON owners (email);