diff options
author | Florian Pritz <bluewind@xssn.at> | 2010-02-26 18:19:58 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2010-02-26 18:19:58 +0100 |
commit | 1d5ab0d38219163e07cc0923d30349e3bc82b9d7 (patch) | |
tree | 35af55c294cd1d651f539dc566a319d909ace2de /system/application/controllers | |
parent | d3e4293d43ca8bd63e6fd2a10d6363485fe2eb6c (diff) |
add LIMITs to (maybe) speedup queries
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'system/application/controllers')
-rw-r--r-- | system/application/controllers/file.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/application/controllers/file.php b/system/application/controllers/file.php index 96165eb55..ac8f15452 100644 --- a/system/application/controllers/file.php +++ b/system/application/controllers/file.php @@ -218,7 +218,7 @@ class File extends Controller { unlink($file); $this->db->query('DELETE FROM files WHERE hash = ?', array($row['hash'])); } else { - $this->db->query('DELETE FROM files WHERE id = ?', array($row['id'])); + $this->db->query('DELETE FROM files WHERE id = ? LIMIT 1', array($row['id'])); } } } |