[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:
WithoutPants
2022-08-01 11:01:29 +10:00
parent abb574205a
commit bc47932343
20 changed files with 810 additions and 354 deletions

View File

@@ -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,