Modify

Opened 3 years ago

Closed 2 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

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

Change History (1)

comment:1 Changed 2 years ago by ejucovy

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed The owner will remain ejucovy.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.