-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[backend] Speedup jobhistory route by 4-6x
This is a two part change. But put together to allow context to the next change. This patch allows fdb_getall_reverse to return undecoded line to filter. This raw line can be filtered out earlier without the need of decoding over the layout. This is useful for large and long maintained projects. Projects (Factory, Devel..) have a long build history, decoding every line in the jobhistory file only to be filtered out based on filter conditions (package type, result code, buildtimes) is expensive. This patch facilitates skipping those costs reach the result faster. Tested on IBS/SUSE:FACTORY:HEAD/standard/i586/MozillaThunderbird without patch: 100 results: 6 sec 1000 results: 53 sec with patch: 100 results: 1 sec 1000 results: 13 sec
- Loading branch information
Sumit Jamgade
committed
May 26, 2020
1 parent
09fb69e
commit 90ba8fa
Showing
2 changed files
with
28 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters