[DocumentUrlDB] Avoid manipulation of the whole tree on trivial rename
ClosedPublic

Authored by bruns on Jun 9 2019, 2:24 PM.

Details

Summary

In case a file or folder is renamed, only the "name" in the IdFilenameDB
has to be updated, the IdTreeDB can be left unmodified.

Currently, a rename has the same effect as removing the file/folder,
eventually removing also its parents, and later adding the exact same
items to the tree again (a rename does not effect the document IDs).

Test Plan
  1. disable indexer
  2. rename file/folder
  3. reenable indexer

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.Jun 9 2019, 2:24 PM
Restricted Application added projects: Frameworks, Baloo. · View Herald TranscriptJun 9 2019, 2:24 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
bruns requested review of this revision.Jun 9 2019, 2:24 PM
bruns retitled this revision from [DocuementUrlDB] Avoid manipulation of the whole tree on trivial rename to [DocumentUrlDB] Avoid manipulation of the whole tree on trivial rename.Jun 9 2019, 3:24 PM
ngraham accepted this revision.Jun 10 2019, 4:30 PM
This revision is now accepted and ready to land.Jun 10 2019, 4:30 PM
This revision was automatically updated to reflect the committed changes.