Skip to content

Commit

Permalink
Merge pull request #4198 from coralproject/fix/describe-archive-cache…
Browse files Browse the repository at this point in the history
…-index

Document Redis cache index for `archivedCommentActions`
  • Loading branch information
tessalt authored Mar 29, 2023
2 parents f4b6b07 + 7f1cda3 commit f2d2b21
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion INDEXES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ The goal of this document is to date-mark the indexes you add to support the cha

If you are releasing, you can use this readme to check all the indexes prior to the release you are deploying and have a good idea of what indexes you might need to deploy to Mongo along with your release of a new Coral Docker image to kubernetes.

## 2023-03-28

```
db.archivedCommentActions.createIndex({ tenantID: 1, storyID: 1 });
```

- This is used to speed up when the redis cache asks for the `archivedCommentActions` associated with a specific story.
- This is common when an archived story is loaded into the redis cache.

## 2022-03-07

```
Expand Down Expand Up @@ -47,7 +56,7 @@ db.sites.createIndex({ tenantID: 1, "$**": "text", createdAt: -1 });
#### uniqueness constraint indexes:

```
db.commentActions.createIndex({ _id: 1 });
db.commentActions.createIndex({ _id: 1 });
db.commentActions.createIndex({ tenantID: 1, id: 1 });
```

Expand Down

0 comments on commit f2d2b21

Please sign in to comment.