简体   繁体   中英

Use sphinx vs MySQL on no text search query

I have this doubt:

Suppose I have a one big table with a relationship to to a smaller table of users.

The idea is to search in that really big table for dates bigger than a given date and order by a score (big int, for example), and obtain related user info at the same time. The result of this query can change every 10 minutes or so.

So, there is no text search, but I have a really big table. Should I use sphinx (or other search engine) or should I just use some MySQL indexes?

If I use sphinx, it's sure that I can obtain really fast results; but maybe having the index refreshed, even with delta indexing, doesn't make a big difference with MySQL indexing. At the same time, the changes in the table are not necessary new inserts, but updates; and I have read that real time indexing and delta index can give problems.

Maybe it would be better to use MySQL indexes, and help with some kind of caching to avoid unnecessary queries .

只需使用MySQL,您肯定不需要Sphinx做任何事情。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM