Commit 9fc17af
committed
Scanning optimization
Extend scanning logic by filtering databases, so that queries that
will certainly be unsuccessful, are skipped.
Filtering criteria:
- size of scanned file
- presence of serial (in case of serials)
Two extra queries for min and max are run for each database on the
first scan, this causes single-file scans to be somewhat slower,
but it pays off with large scans.
Archive size is also checked. The built-in shortcut of scanning
both the archive (zip file) and the first (possibly only) file
inside the archive is retained, it makes logic more complicated,
but the speed difference is significant for sets that contain
one zipped file per title.1 parent d43a641 commit 9fc17af
2 files changed
Lines changed: 255 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
0 commit comments