Fix slow queries and pagers
This commit is contained in:
1 parent
ee36958b39
commit
ed87cb6018
4 files changed
+41
-13
No files matched your search
+3
-3
@@ -253,7 +253,7 @@ impl SoundCtx for Data {
|
||||
LIMIT ?, ?",
|
||||
user_id.into(),
|
||||
page * 25,
|
||||
(page + 1) * 25
|
||||
25u64
|
||||
)
|
||||
.fetch_all(&self.database)
|
||||
.await?
|
||||
@@ -294,7 +294,7 @@ impl SoundCtx for Data {
|
||||
LIMIT ?, ?",
|
||||
user_id.into(),
|
||||
page * 25,
|
||||
(page + 1) * 25
|
||||
25u64
|
||||
)
|
||||
.fetch_all(&self.database)
|
||||
.await?
|
||||
@@ -335,7 +335,7 @@ impl SoundCtx for Data {
|
||||
LIMIT ?, ?",
|
||||
guild_id.into(),
|
||||
page * 25,
|
||||
(page + 1) * 25
|
||||
25u64
|
||||
)
|
||||
.fetch_all(&self.database)
|
||||
.await?
|
||||
|
||||
Reference in new issue
Block a user