Opened 7 years ago

Closed 6 years ago

#9790 closed enhancement (fixed)

Selectively reindex needed files when changeset_added

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


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 (0)

Change History (1)

comment:1 Changed 6 years ago by ejucovy

Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain ejucovy.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.