Skip to content

Commit 4690eb2

Browse files
committed
Optimize_Index_On_user
1 parent 027699e commit 4690eb2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

df.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,10 @@ CREATE TABLE `user` (
774774
`scan_count` int(11) DEFAULT '0',
775775
`follow_count` int(11) DEFAULT '0',
776776
`follower_count` int(11) DEFAULT '0',
777-
PRIMARY KEY (`uid`)
777+
PRIMARY KEY (`uid`),
778+
KEY `email` (`email`),
779+
KEY `post_count` (`post_count`),
780+
KEY `join_time` (`join_time`)
778781
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;
779782

780783
-- ----------------------------

0 commit comments

Comments
 (0)