Questions about the MySQL query URL

Source: Internet
Author: User
Tags crc32 mysql query
If you want to query the URL, too long will affect the effect, so the article mentions to add a column for example URL_CRC, through the CRC32 function to query,
But I do not understand why the "this drawback is to maintain the hash" in the text, and manually create trigger maintenance will not have side effects?


Reply to discussion (solution)

Bizarre
CRC32 is not guaranteed to be unique, that is, different URLs may have the same CRC32 value
If you need to check the URL again when the CRC32 appears.
Then why not index the URL to query it?

  • 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.