Skip to content

[FIX] Remove unique index from read receipt messageid #15601

Closed
geekgonecrazy wants to merge 1 commit intodevelopfrom
remove-unique-index-from-readreceipt
Closed

[FIX] Remove unique index from read receipt messageid #15601
geekgonecrazy wants to merge 1 commit intodevelopfrom
remove-unique-index-from-readreceipt

Conversation

@geekgonecrazy
Copy link
Copy Markdown
Contributor

@rocketchat/backend we might have to create a migration some how to recreate this index or to remove unique from messageId?

This would fix #15484

@wreiske
Copy link
Copy Markdown
Contributor

wreiske commented Oct 16, 2019

👀 😍

@geekgonecrazy
Copy link
Copy Markdown
Contributor Author

@MarcosSpessatto should we dropIndex in migration and then ensure again? Not sure best way to do this with the models

@rodrigok
Copy link
Copy Markdown
Member

@geekgonecrazy I don't think this would solve the problem since the index added on the PR merged was not the one with the unique modifier.

We need to investigate this better since the compound index is correct there. Only one read per message per user is allowed.

@geekgonecrazy
Copy link
Copy Markdown
Contributor Author

ah right.. thats a compound index. mine is not valid then 😁

@geekgonecrazy geekgonecrazy deleted the remove-unique-index-from-readreceipt branch October 17, 2019 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Read receipts not working

3 participants