From 2f2c18177e8a054b4970085bd6f75a4e2a482f1a Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Mon, 28 Oct 2013 13:34:20 +0100 Subject: [PATCH] SQL optimization --- toys/createindex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toys/createindex b/toys/createindex index 1f356e5..39e3484 100755 --- a/toys/createindex +++ b/toys/createindex @@ -338,8 +338,8 @@ SELECT tags.track, tags.year, source_files.size -FROM source_files - INNER JOIN mime_types +FROM mime_types + INNER JOIN source_files ON source_files.mime_type=mime_types.id INNER JOIN tags ON source_files.id=tags.source_file