MYSQL 匹配
到目前为止,我有一个名为“业务”的表,其中包含 13,000,000 条记录。 我想在此表中搜索 lowerTitle 和电话字段。 如果我使用:
SELECT * FROM business WHERE MATCH (lowerTitle) AGAINST (`blabla` IN BOOLEAN MODE);
它工作得很快,现在我想在 phone
字段中使用:
SELECT * FROM business WHERE MATCH (lowerTitle,phone) AGAINST (`blabla` IN BOOLEAN MODE);
由于某种原因,它工作得非常慢,有人可以在这里提供帮助吗?
非常感谢。
I have table called 'business' with 13,000,000 records so far.
I want to search in this table on lowerTitle and phone fields.
If I'm using:
SELECT * FROM business WHERE MATCH (lowerTitle) AGAINST (`blabla` IN BOOLEAN MODE);
It's working fast, Now I want to search also in phone
field using:
SELECT * FROM business WHERE MATCH (lowerTitle,phone) AGAINST (`blabla` IN BOOLEAN MODE);
for some reason, it's working very slow, someone can assist here?
Thank you very much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保您在 (lowerTitle,phone) 上有全文(不是 btree)索引。如果不:
Make sure you've a full text (not btree) index on (lowerTitle,phone). If not: