From 0e1b8a674c8ce003b6a9c001ae1cfb55131acf64 Mon Sep 17 00:00:00 2001 From: Per Cederqvist <ceder@lysator.liu.se> Date: Sun, 20 Apr 2003 21:27:12 +0000 Subject: [PATCH] Improve scanning performance by a factor of approximately 8. Schema fix. --- ChangeLog | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2ac2615..6f5ea82 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2003-04-20 Per Cederqvist <ceder@ceder.dyndns.org> + + Schema fix. + * createdb.sql (file): The filename, size, mtime, dir_id should be + sufficient as a unique key. + + Improve scanning performance by a factor of approximately 8. + * scanner.py (scan): Performance fix: don't do a select per file + we examine. Insert all of the files into a temporary table + instead, and do a left join to find out which of them that are + new. + (insert_tmp_files): New function. + 2003-04-19 Per Cederqvist <ceder@ceder.dyndns.org> Optimize the database. -- GitLab