haystack's RealTimeSearchIndex causes django to hang on data entry

Posted by lsc on Stack Overflow See other posts from Stack Overflow or by lsc
Published on 2010-03-03T15:08:41Z Indexed on 2010/03/08 9:21 UTC
Read the original article Hit count: 367

I'm using django-haystack and a xapian backend with real time indexing (haystack.indexes.RealTimeSearchIndexing) of model data and it works fine on my Ubuntu server. However, it causes django to hang upon data entry when I deployed the app on a RHEL5 server.

Everything is hunky dory if I switch to a standard SearchIndex.

Running ./manage.py rebuild_index manually works fine too.

The major differences between the two setups would be the versions of Python (2.4.3 vs 2.6.4) and the xapian (1.0.4-1 vs 1.0.15).

Any suggestions on what may be the problem?

Nothing interesting appears in the logs, and I've tried different databases (mysql, sqlite3) and deployment methods (mod_python, wsgi) with no luck yet.

I have noted the warning on the haystack docs stating that RealTimeSearchIndex is only handled gracefully with a Solr backend, however I'm running a very traffic site with only occasional writes so I'm fine with some CPU overheads on writes.

© Stack Overflow or respective owner

Related posts about beginner

Related posts about django