Avoid N+1 query for channels with new messages

Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
Max Brunsfeld 2023-10-02 16:22:28 -07:00
parent d9d997b218
commit 0db4b29452
5 changed files with 88 additions and 69 deletions

View file

@ -171,6 +171,8 @@ test_both_dbs!(
);
async fn test_channel_buffers_diffs(db: &Database) {
panic!("Rewriting the way this works");
let a_id = db
.create_user(
"user_a@example.com",