Modify

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#172 closed enhancement (fixed)

Utility app to "batch" update index

Reported by: dserodio Owned by: athomas
Priority: normal Component: RepoSearchPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

I miss an utility app to "batch" update index, so I can start it via cron(8) and nice(1) the index updating process; right now I have an Apache process that's been running for 21h, with 100% CPU usage.

Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by athomas

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

Wow. How big is your repo?

You should be able to re-index with this:

from trac.env import Environment
e = Environment('/path/to/your/trac/env')
from tracreposearch.indexer import Indexer
indexer = Indexer(e)
indexer.reindex()

Just be aware that if you do a search while it is indexing the search will do a full walk of the repository.

Add Comment

Modify Ticket

Action
as closed The owner will remain athomas.
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.