Skip to content

Commit

Permalink
perf: avoid select all field when list blob keys
Browse files Browse the repository at this point in the history
  • Loading branch information
forehalo authored and darkskygit committed Nov 9, 2023
1 parent f16b008 commit dd94f17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/jwst-storage/src/storage/blobs/blob_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ impl BlobDBStorage {
async fn keys(&self, workspace: &str) -> Result<Vec<String>, DbErr> {
Blobs::find()
.filter(BlobColumn::WorkspaceId.eq(workspace))
.select_only()
.column(BlobColumn::Hash)
.all(&self.pool)
.await
Expand Down

1 comment on commit dd94f17

@vercel
Copy link

@vercel vercel bot commented on dd94f17 Nov 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.