Sphinx 0.9.8 is released!
The Sphinx project just released version 0.9.8, with many enhancements since the previous release. There’s never been a better time to try it out. It’s really cool technology.
What is Sphinx? Glad you asked. It’s fast, efficient, scalable, relevant full-text searching and a heck of a lot more. In fact, Sphinx complements MySQL for a lot of non-search queries that MySQL frankly isn’t very good at, including WHERE clauses on low-selectivity columns, ORDER BY with a LIMIT and OFFSET, and GROUP BY. A lot of you are probably running fairly simple queries with these constructs and getting really bad performance in MySQL. I see it a lot when I’m working with clients, and there’s often not much room for optimization. Sphinx can execute a subset of such queries very efficiently, due to its smart I/O algorithms and the way it uses memory. By “subset” I mean you don’t get the full complexity of SQL, but you get enough functionality for lots of the poorly-performing queries I see in the wild. It’s a 95% solution.
Is Sphinx for you? Good question. You can find answers in Appendix C in High Performance MySQL. And yes, that is why I wrote this blog post — to put in a plug for the book. *grin* But before I go, let me put in another plug for Sphinx: go vote for it on Sourceforge! If it’s voted as one of the Community Choice projects of the year, that will be fantastic.
Further Reading:






Sphinx is one of those little gems I stumbled into awhile back as well…I couldn’t/can’t believe more people aren’t buzzing about it. I even toyed with trying to write a book about it myself, but haven’t had the time to really focus on the project.
Anyway – glad to see it get some notice!
Kevin Marshall
16 Jul 08 at 9:08 am
I really need to look into Sphinx. We’ve been using FULLTEXT indexing in MyISAM for some custom-built site searches, and we’ll be moving over to using primarily InnoDB in the near future, so we need a new fulltext solution.
Fortunately I happen to have the aforementioned Appendix C handy so I can find out if it is right for me :)
Joe Izenman
16 Jul 08 at 12:03 pm