简体   繁体   English

REGEX查询在MyISAM表中比在InnoDB中运行更快吗?

[英]Does REGEX query run faster in MyISAM table than in InnoDB?

Select * from Table where text REGEXP '[[:<:]]car[[:>:]]'

如果它是MyISAM表,如果它是InnoDB,性能是否有差异?

They both cause full table scan. 它们都导致全表扫描。

So there is practically no reason to "compare" performance, since the full table scan is already the thing you should avoid. 因此,实际上没有理由“比较”性能,因为全表扫描已经是您应避免的事情。

If you have an intelligence search - use builtin fulltext index or some mature 3rd party ones like Lucene or sphinx. 如果您进行情报搜索,请使用内置的全文本索引或一些成熟的第三方(如Lucene或Sphinx)。

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

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