Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#172 closed enhancement (fixed)

Utility app to "batch" update index

Reported by: dserodio Owned by: Alec Thomas
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 18 years ago by Alec Thomas

Resolution: fixed
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Alec Thomas.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.