Commit b10302ee by mercymodest

feat: add MongoDB index on deviceId and updatedAt for event collection

parent 2862a2ce
# MongoDB 索引
# MongoDB 索引
db.events.createIndex(
{ "deviceId": 1, "updatedAt": -1 },
{ name: "idx_deviceId_updatedAt", background: true }
)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment