开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜