简体   繁体   English

Sphinx搜索或MySQL用于大型数据库搜索引擎

[英]Sphinx search or MySQL for a huge database search enginee

So I'm working on a huge eCommerce solution on top of Symfony2, Doctrine2 and MySQL (maybe a cluster since we will have a lot of people connected and working in our platform) so I'm trying to decide if will be better to use Sphinx search or MysQL for search solution since some data will need to be duplicated in MySQL tables and in Sphinx. 因此,我正在基于Symfony2,Doctrine2和MySQL(可能是一个集群,因为我们将有很多人在我们的平台上工作)建立一个庞大的电子商务解决方案,所以我试图确定是否会更好地使用Sphinx搜索或MysQL搜索解决方案,因为某些数据需要在MySQL表和Sphinx中重复。 Our main goal is performance so excellent response times is what we look for. 我们的主要目标是性能,因此我们追求的是出色的响应时间。 I'm not an expert in none so I need some advice from people here based on theirs experience and so on, maybe some docs or whatever. 我不是专家,所以我需要根据他们的经验等从这里的人那里获取一些建议,也许是一些文档等等。 What path did yours take on this side. 您在这方面走了什么路。

PS: The DB will grow up really fast take that into account and the platform will be for the entire worl PS:考虑到这一点,数据库将以非常快的速度增长,并且该平台将为整个世界

Sphinx is usually preferred when it comes to performance vs MySQL for high volume searches because it's easy to scale. 在性能方面,对于大规模搜索而言,通常首选Sphinx而不是MySQL,因为它易于扩展。 You will have a delay on results, to allow it to sync data with mysql, but even so it's better. 您将延迟结果,以使其与mysql同步数据,但这样更好。

You should also take a good look at the actual queries that will run and store in Sphinx only the fields that are searchable along with their ids. 您还应该仔细研究将仅在可搜索字段及其ID的情况下运行并存储在Sphinx中的实际查询。 Once you get the ids from sphinx, to list them use a mysql slave to get their other, non-searchable data. 从sphinx获取ID后,要列出它们,请使用mysql从属服务器获取其其他不可搜索的数据。

Depending on what queries you are using for search, 根据您用于搜索的查询,

A better solution than sphinx is Amazon Cloudsearch . 比狮身人面像更好的解决方案是Amazon Cloudsearch We had a hard time implementing it, but it was well worth it, both time and $$$, and it replaced our sphinx solution 我们很难实施它,但是这是非常值得的,既省时又省钱,并且它取代了我们的狮身人面像解决方案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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