Use sphinx vs MySQL on no text search query

流过昼夜 提交于 2019-12-07 22:18:35

问题


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 .


回答1:


Just use MySQL, you definitely don't need Sphinx for what you are doing.



来源:https://stackoverflow.com/questions/13468806/use-sphinx-vs-mysql-on-no-text-search-query

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!