mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
[Files Refactor] Performance tuning (#2784)
* Improve image query performance * Tune queries * Fix db generator * Don't show release notes in setup * Further tune indexes * Log when creating screenshot
This commit is contained in:
@@ -155,7 +155,7 @@ func Test_fileFileStore_Create(t *testing.T) {
|
||||
CreatedAt: createdAt,
|
||||
UpdatedAt: updatedAt,
|
||||
},
|
||||
false,
|
||||
true,
|
||||
},
|
||||
{
|
||||
"empty basename",
|
||||
@@ -376,14 +376,14 @@ func Test_fileStore_Update(t *testing.T) {
|
||||
CreatedAt: createdAt,
|
||||
UpdatedAt: updatedAt,
|
||||
},
|
||||
false,
|
||||
true,
|
||||
},
|
||||
{
|
||||
"clear zip",
|
||||
&file.BaseFile{
|
||||
ID: fileIDs[fileIdxInZip],
|
||||
Path: getFilePath(folderIdxWithFiles, getFileBaseName(fileIdxZip)),
|
||||
Basename: getFileBaseName(fileIdxZip),
|
||||
Path: getFilePath(folderIdxWithFiles, getFileBaseName(fileIdxZip)+".renamed"),
|
||||
Basename: getFileBaseName(fileIdxZip) + ".renamed",
|
||||
ParentFolderID: folderIDs[folderIdxWithFiles],
|
||||
},
|
||||
false,
|
||||
|
||||
Reference in New Issue
Block a user