Skip to content
Snippets Groups Projects
Verified Commit c9df10e4 authored by Kristian Klausen's avatar Kristian Klausen :tada:
Browse files

mailman3: Switch to a faster search backend (Xapian)


Whoosh is used by default, but it is slow at indexing (multiple hours
for just aur-requests) and searching e.g. aur-requests isn't possible
(it is slow and uses 3G+ of memory resulting in it getting OOM-killed).

Xapian indexed everything in just 76 minutes and searching aur-requests
now works and is plenty fast.

Co-authored-by: default avatarEvangelos Foutras <evangelos@foutrelis.com>
parent 595e3316
No related branches found
No related tags found
No related merge requests found
Pipeline #29983 passed
- name: Install mailman3 and related packages - name: Install mailman3 and related packages
pacman: name=mailman3,mailman3-hyperkitty,python-psycopg2,mailman-web,uwsgi-plugin-python state=present pacman: name=mailman3,mailman3-hyperkitty,python-psycopg2,mailman-web,python-xapian-haystack,uwsgi-plugin-python state=present
register: install register: install
- name: Install {mailman,mailman-web} configuration - name: Install {mailman,mailman-web} configuration
......
...@@ -51,7 +51,7 @@ HYPERKITTY_ENABLE_GRAVATAR = False ...@@ -51,7 +51,7 @@ HYPERKITTY_ENABLE_GRAVATAR = False
HAYSTACK_CONNECTIONS = { HAYSTACK_CONNECTIONS = {
'default': { 'default': {
'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine', 'ENGINE': 'xapian_backend.XapianEngine',
'PATH': '/var/lib/mailman-web/fulltext_index' 'PATH': '/var/lib/mailman-web/xapian_index'
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment