[FileIndexScheduler] Update the content index progress more often
ClosedPublic

Authored by bruns on Mar 25 2020, 12:16 AM.

Details

Summary

Currently the progress/remaining time was only updated once per batch as
the count or pending files was only updated once per batch. Use the
ExtractorProcess::finishedIndexingFile signal to count indexed files.

This also allows to get rid of the recurrent DB access to get the count
of remaining files.

Depends on D28258

Test Plan

Progress in kinfocenter is updated each second, not only every
batch.

Diff Detail

Repository
R293 Baloo
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bruns created this revision.Mar 25 2020, 12:16 AM
Restricted Application added projects: Frameworks, Baloo. · View Herald TranscriptMar 25 2020, 12:16 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
bruns requested review of this revision.Mar 25 2020, 12:16 AM
ngraham accepted this revision.Mar 25 2020, 4:29 PM

Nice work.

This revision is now accepted and ready to land.Mar 25 2020, 4:29 PM
This revision was automatically updated to reflect the committed changes.