《MySQL數(shù)據(jù)庫unique索引和index索引性能比較》要點(diǎn):
本文介紹了MySQL數(shù)據(jù)庫unique索引和index索引性能比較,希望對(duì)您有用。如果有疑問,可以聯(lián)系我們。
測(cè)試環(huán)境 Centos6.5 Mysql5.5.53 引擎 InnoDB
select * from index_users where username_clean=’xxxx’
select * from uk_users where username_clean=’xxxx’
然后從三次測(cè)試成果可以看出,用unique做的索引比用index的索引執(zhí)行的平均時(shí)間都要快一些.
歡迎添加微信號(hào)‘xha911’,配合探討
《MySQL數(shù)據(jù)庫unique索引和index索引性能比較》是否對(duì)您有啟發(fā),歡迎查看更多與《MySQL數(shù)據(jù)庫unique索引和index索引性能比較》相關(guān)教程,學(xué)精學(xué)透。維易PHP學(xué)院為您提供精彩教程。
轉(zhuǎn)載請(qǐng)注明本頁網(wǎng)址:
http://www.fzlkiss.com/jiaocheng/8684.html