postgres 利用unique index代替 primay key,postgresprimay
postgres 利用unique index代替 primay key,postgresprimay
create UNIQUE INDEX uniq_index_piwik_log_action_idaction on piwik_log_action(idaction);
这样做的好处:
1. primary的index不能方便的reindex
2. postgres里面的index容易膨胀
评论暂时关闭