Skip to content

Commit

Permalink
diactivate index for createdAt in Activity model
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-takei committed May 13, 2024
1 parent 976efcd commit d363770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/app/src/server/models/activity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const activitySchema = new Schema<ActivityDocument, ActivityModel>({
updatedAt: false,
},
});
activitySchema.index({ createdAt: 1 });
// activitySchema.index({ createdAt: 1 }); // Do not create index here because it is created by ActivityService as TTL index
activitySchema.index({ target: 1, action: 1 });
activitySchema.index({
user: 1, target: 1, action: 1, createdAt: 1,
Expand Down

0 comments on commit d363770

Please sign in to comment.