Ticket #9790 (closed enhancement: fixed)

Opened 1 year ago

Last modified 4 months ago

Selectively reindex needed files when changeset_added

Reported by: ejucovy Assigned to: ejucovy
Priority: normal Component: MultiRepoSearchPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

Currently the plugin's changeset_added method performs a full reindex on the repository that the event was fired on. For large repositories this will be very expensive.

The changeset_added method contains data about what files were added, modified or removed. So it should be possible for the plugin to selectively reindex only those files that were impacted by the newly added changeset.

The implementation should probably involve passing the extra data from changeset_added to the search backend's reindex_repository method (as new optional arguments to that method) rather than adding a new reindex_repository_files method -- depending on the search backend used, a partial reindexing may or may not be possible, and I think you'd always want to perform the smallest reindex possible.

Attachments

Change History

01/14/13 05:21:44 changed by ejucovy

  • status changed from new to closed.
  • resolution set to fixed.

Add/Change #9790 (Selectively reindex needed files when changeset_added)




Change Properties
Action