Quote:
Originally Posted by mute
We're not ready to upgrade to 3.7 yet, but I'd really like to have "Find all posts/threads by user" hitting Sphinx when we do, those queries are sort of brutal for us.
|
If it only searches for posts by the user and nothing else (no search terms added), you should just add an index on (userid, dateline) to your post table. Then it will be as fast as fetching the posts for a thread. You don't need an external engine like Sphinx to do this fast. The situation with threads is similar, (postuserid, dateline). Use Sphinx for fulltext searching; MySQL proper is still just fine for searches without any text aspect.