性能优化 - 这条MySQL的全文索引查询语句有什么问题
PHPz
PHPz 2017-04-17 11:01:22
0
0
286

select id,createDate from ofnews where match(newsrange) against ('+1000005' in boolean mode) and state != '0' and publisher ='someuser'

数据有5万条,newsrange是fulltext全文索引,publisher是普通的varchar字段

上面的SQL语句执行了0.9秒

而如果去掉 and publisher = 'someuser',只有0.02秒

请问如何优化?

PHPz
PHPz

学习是最好的投资!

Antworte allen(0)
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!