regex - Mysql LIKE vs REGEXP with 2 or more param -
which faster , better on large data?
select * 'table' name 'micky%' or name 'molly%' select * 'table' name regexp '(^micky | ^molly)'
when parameters more 10, make slower 1 become faster?
speed of query depends on indexes of database structure. if 'select' query consists of indexed parameters, should use 'like' provided wildcard not first character.but if there no indexing in structure can use either of them. best test time taken in both scenarios.
Comments
Post a Comment