Updated comment

This commit is contained in:
Natty 2024-09-06 00:04:28 +02:00
parent 611afc591c
commit 62fc36ff03
Signed by: natty
GPG Key ID: BF6CB659ADEE60EC
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,8 @@ impl NoteResolveMode {
match self {
NoteResolveMode::Single(id) => Ok(id_col.eq(id)),
NoteResolveMode::Multiple(ids) => Ok(id_col.is_in(ids)),
// We add a CTE for pins
// We do this in a separate query, because before we used an inner join, and it caused
// a massive performance penalty
NoteResolveMode::PinsFromUserId(user_id) => {
let cte_query = user_note_pining::Entity::find()
.column(user_note_pining::Column::NoteId)