Skip to content

Commit 8f0b2f2

Browse files
committed
Add reindex info to upgrading.doc
Recommended if you are affected by indexer code fixes, required if you use whoosh and are upgrading to python 3.
1 parent 0fb9039 commit 8f0b2f2

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

doc/upgrading.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ you do not need to export and import, but need to delete the
5151
If using the ``postgresql`` backend, you do not need to export and
5252
import and no other special database-related steps are needed.
5353

54+
If you use the whoosh indexer, you will need to reindex. It looks like
55+
a database created with Python 2 leads to Unicode decode errors when
56+
accessed by Python 3. Reindexing can take a while (see details below
57+
look for "reindexing").
58+
5459
Octal values in config.ini change from the Python 2 representation
5560
with a leading ``0`` (``022``). They now use a leading ``0o``
5661
(``0o22``). Note that the ``0o`` format is properly handled under
@@ -126,6 +131,26 @@ detectors directory. Otherwise merge the changes from the template
126131
userauditor.py. https://issues.roundup-tracker.org/issue2550921 may be
127132
helpful.
128133

134+
Consider reindexing if you use European languages
135+
-------------------------------------------------
136+
137+
A couple of bugs dealing with incorrect indexing of European languages
138+
(Russian and German were reported) have been fixed. Note reindexing
139+
all your data may take a long time. See:
140+
https://issues.roundup-tracker.org/issue1195739 and
141+
https://issues.roundup-tracker.org/issue1344046 for a description of
142+
the problem. If you determine that this a problem for your tracker,
143+
you can use::
144+
145+
roundup-admin -i /path/to/tracker reindex
146+
147+
to rewrite your full text indexes. The tracker used for reindex timing
148+
had 140MB of file/message data and 2500 issues with a slow 5400RPM
149+
SATA drive. Using native indexing with sqlite took about 45
150+
minutes. Using whoosh took about 2 hours. Using xapian took about 6
151+
hours. All examples were with Python 2. Anecdotal evidence shows
152+
Python 3 is faster, but YMMV.
153+
129154
Migrating from 1.5.1 to 1.6.0
130155
=============================
131156

0 commit comments

Comments
 (0)