Updated comment
This commit is contained in:
parent
611afc591c
commit
62fc36ff03
|
@ -45,7 +45,8 @@ impl NoteResolveMode {
|
||||||
match self {
|
match self {
|
||||||
NoteResolveMode::Single(id) => Ok(id_col.eq(id)),
|
NoteResolveMode::Single(id) => Ok(id_col.eq(id)),
|
||||||
NoteResolveMode::Multiple(ids) => Ok(id_col.is_in(ids)),
|
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) => {
|
NoteResolveMode::PinsFromUserId(user_id) => {
|
||||||
let cte_query = user_note_pining::Entity::find()
|
let cte_query = user_note_pining::Entity::find()
|
||||||
.column(user_note_pining::Column::NoteId)
|
.column(user_note_pining::Column::NoteId)
|
||||||
|
|
Loading…
Reference in New Issue