为数据库添加索引,加快查询速度

This commit is contained in:
xaoyaoo 2024-08-03 14:01:45 +08:00
parent d5fd863cfa
commit 2d0d303ec0

View File

@ -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,