Assume we have a table that looks like this:
create table t1(c1 varchar(x)collate utf8mb4_general_ci, index(c1))
To do byte-sensitive compa
As you have index in the table,for binary match use binary for constant,not to the column. This will be faster than both of your options.
select * from t1 where c1 = binary 'test'
Answer to you question is option 1 will be faster where you are doing
WHERE c1 collate utf8mb4_bin='test'