开发者

do I need to store domain names to md5 mode in database?

开发者 https://www.devze.com 2023-01-05 03:33 出处:网络
I had a feeling that searching domain 开发者_运维问答names taking time more than as usual in mysql. actually domain name column has a unique index though query seems slow.

I had a feeling that searching domain 开发者_运维问答names taking time more than as usual in mysql. actually domain name column has a unique index though query seems slow.

My question is do I need to convert to binary mode?? say md5 hash or something??


Normally keeping the domain names in a "VARCHAR" data type, with an UNIQUE index defined for that field, is the most simple & efficient way of managing your data.

Never try to use any complexity (like using Binary mode or "BLOB" data type), for the sake of one / two field(s), as it will further deteriorate your MySQL performance.

Hope it helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消