Slow loading on private-message-topic-tracking-state.json

This fix should bring it down to 13ms or so.

Do note that the more unread you have, the more expensive the query is going to be.

@sam Another thing I need to fix is that dismissing unread doesn’t update the first_unread_at optimisations we have for normal and PM topics.

4 Likes