[FileIndexScheduler] Update the content index progress more often
ClosedPublic

Authored by bruns on Wed, Mar 25, 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.Wed, Mar 25, 12:16 AM
Restricted Application added projects: Frameworks, Baloo. · View Herald TranscriptWed, Mar 25, 12:16 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
bruns requested review of this revision.Wed, Mar 25, 12:16 AM
ngraham accepted this revision.Wed, Mar 25, 4:29 PM

Nice work.

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