add mongo index

This commit is contained in:
daniel.w 2024-08-30 15:12:53 +08:00
parent 5d22b9c575
commit 68cf992930
1 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
use digimon_tweeting;
db.comment.createIndex({ "post_id": 1,"createAt":1});
// TODO 看是否有要刪除過多的索引,要在測試一下