Skip to content

Commit

Permalink
More efficient query when loading storage index. (#1189)
Browse files Browse the repository at this point in the history
  • Loading branch information
redbaron authored Mar 20, 2024
1 parent eb5733e commit e7f0149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/storage_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ SELECT user_id, key, version, value, read, write, create_time, update_time
FROM storage
WHERE collection = $1
AND key = $3
AND (collection, key, user_id) > ($1, $3, $4)
AND user_id > $4
ORDER BY collection, key, user_id
LIMIT $2`
}
Expand Down

0 comments on commit e7f0149

Please sign in to comment.