为数据库添加索引,加快查询速度
This commit is contained in:
parent
d5fd863cfa
commit
2d0d303ec0
@ -35,11 +35,11 @@ class DBHandler(MicroHandler, MediaHandler, OpenIMContactHandler, PublicMsgHandl
|
||||
self.OpenIMMedia_exist = self.OpenIMMedia_tables_exist()
|
||||
self.Favorite_exist = self.Favorite_tables_exist()
|
||||
|
||||
if self.MSG_exist: # 添加索引 StrTalker
|
||||
if self.MSG_exist: # 添加索引
|
||||
self.Msg_add_index()
|
||||
if self.PublicMsg_exist: # 添加索引 StrTalker
|
||||
if self.PublicMsg_exist: # 添加索引
|
||||
self.PublicMsg_add_index()
|
||||
if self.Micro_exist: # 添加索引 StrTalker
|
||||
if self.Micro_exist: # 添加索引
|
||||
self.Micro_add_index()
|
||||
|
||||
# print(self.MSG_exist, self.Micro_exist, self.Media_exist, self.OpenIMContact_exist, self.PublicMsg_exist,
|
||||
|
Loading…
Reference in New Issue
Block a user