mirror of
https://github.com/diced/zipline.git
synced 2026-07-28 12:56:59 -07:00
feat: speed up file uploads (#1121)
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- CreateIndex
|
||||
CREATE INDEX "File_userId_size_idx" ON "public"."File"("userId", "size");
|
||||
@@ -17,7 +17,7 @@ model Zipline {
|
||||
|
||||
coreReturnHttpsUrls Boolean @default(false)
|
||||
coreDefaultDomain String?
|
||||
coreTempDirectory String // default join(tmpdir(), 'zipline')
|
||||
coreTempDirectory String // default resolve('./uploads/.tmp')
|
||||
coreTrustProxy Boolean @default(false)
|
||||
|
||||
chunksEnabled Boolean @default(true)
|
||||
@@ -298,6 +298,7 @@ model File {
|
||||
thumbnail Thumbnail?
|
||||
|
||||
@@index([name])
|
||||
@@index([userId, size])
|
||||
@@index([folderId, createdAt])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user