fix: index (#5458)

* doc

* fix: home app name

* fix: char init error status

* fix: index

* fix: secret input
This commit is contained in:
Archer
2025-08-14 18:54:47 +08:00
committed by GitHub
parent 9a9f094e15
commit eadf2fd54c
14 changed files with 64 additions and 43 deletions

View File

@@ -89,7 +89,10 @@ const ChatSchema = new Schema({
});
try {
ChatSchema.index({ initCharts: 1 });
// Tmp
ChatSchema.index({ initStatistics: 1 });
ChatSchema.index({ appId: 1, tmbId: 1, outLinkUid: 1 });
ChatSchema.index({ chatId: 1 });
// get user history
ChatSchema.index({ tmbId: 1, appId: 1, top: -1, updateTime: -1 });