For larger result sets, querying the mtime (once for lhs and rhs each)
on each sorting step contributes significantly to the execution time.
Retrieve the mtime once for each document and use it for searching.
Details
Details
- Reviewers
michaelh - Group Reviewers
Baloo - Commits
- R293:890c0ff46ec9: Do not retrieve mtime from database repeatedly when sorting
$> build/bin/baloosearch -l 1 type=image /home/stefan/DE15_Connector_Pinout.svg Elapsed: 0.432438 msecs $> baloosearch -l 1 type=image /home/stefan/DE15_Connector_Pinout.svg Elapsed: 3.66243 msecs $> build/bin/baloosearch type=image | wc -l Elapsed: 3.19816 msecs 1017 $> baloosearch type=image | wc -l Elapsed: 7.45712 msecs 1017
Diff Detail
Diff Detail
- Repository
- R293 Baloo
- Branch
- searchstore_speedup_1
- Lint
No Linters Available - Unit
No Unit Test Coverage
Comment Actions
Specially with --limit this is a considerable speed gain. Thank you.
src/lib/searchstore.cpp | ||
---|---|---|
122 ↗ | (On Diff #31007) | Please use braces. |
src/lib/searchstore.cpp | ||
---|---|---|
122 ↗ | (On Diff #31007) | Hunk omitted, as unrelated |