From: Richard Kettlewell Date: Mon, 31 Dec 2007 16:13:44 +0000 (+0000) Subject: disorder-rescan can now suppress the check phase, which on first X-Git-Tag: 3.0~113 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/ffac51d73ab97c4c9c1e6c43b18d54d716000bf6?hp=ffac51d73ab97c4c9c1e6c43b18d54d716000bf6 disorder-rescan can now suppress the check phase, which on first startup with lots of tracks is rather time consuming. Additionally, it avoids doing most of the work inside a transaction, by the rather brute expedient of pulling the entire track list into memory and then iterating over that. The server takes advantage of this by making the initial blocking rescan not do the check phase, so it's reasonably quick, and then issuing a second non-blocking rescan immediately. It might be better all round to calculate track lengths on demand but this arrangement should be better than previously. ---