Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
There is not so much data, it is always better to start with a simple understandable logic, and then, if necessary, optimize. Now UNIQUE(`url`), tomorrow it will be possible to add the `hashCRC32` INT field and store the hash of the string in CRC32 there, the unique index will need to be changed to UNIQUE(`hashCRC32`, `url`) - there will be a quick selection by the field with an integer and double index will not give duplicates.
It is a lot of the data is 20 million records....
In your case hang up on the UNIQUE + field on the same INDEX field and speed of selection/load on a DB will be comprehensible.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question