Is mysql fuzzy query more efficient than like?

Source: Internet
Author: User
Because we want to combine all the basic information of a piece of data into a field, and then use like to perform fuzzy queries, the speed of data processing is a little slow. Is there a more efficient way than like, is it feasible to add an index to this field? because we combine all the basic information of a piece of data into a field and then use like to perform fuzzy query, the speed of data processing will be a little slow, is there a way that is more efficient than like? is it feasible to add an index to this field?

Reply content:

Because we want to combine all the basic information of a piece of data into a field, and then use like to perform fuzzy queries, the speed of data processing is a little slow. Is there a more efficient way than like, is it feasible to add an index to this field, newcomer

Adding an index can improve the efficiency of like '% xxxx % '.
What else do you want to check?

Like 'xxxx % 'will hurry up

Sphinx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.