mirror of
https://github.com/immich-app/immich.git
synced 2025-07-13 20:38:46 +02:00
fix(server): improve library scan queuing performance (#4418)
* fix: inline mark asset as offline * fix: improve log message * chore: lint * fix: offline asset algorithm * fix: use set comparison to check what to import * fix: only mark new offline files as offline * fix: compare the correct array * fix: set default library concurrency to 5 * fix: remove one db call when scanning new files * chore: remove unused import --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
This commit is contained in:
parent
99e9c2ada6
commit
56eb7bf0fc
10 changed files with 25 additions and 77 deletions
server/test/e2e
|
@ -41,7 +41,7 @@ describe(`${LibraryController.name} (e2e)`, () => {
|
|||
|
||||
beforeEach(async () => {
|
||||
await db.reset();
|
||||
restoreTempFolder();
|
||||
await restoreTempFolder();
|
||||
await api.authApi.adminSignUp(server);
|
||||
admin = await api.authApi.adminLogin(server);
|
||||
});
|
||||
|
@ -49,7 +49,7 @@ describe(`${LibraryController.name} (e2e)`, () => {
|
|||
afterAll(async () => {
|
||||
await db.disconnect();
|
||||
await app.close();
|
||||
restoreTempFolder();
|
||||
await restoreTempFolder();
|
||||
});
|
||||
|
||||
describe('GET /library', () => {
|
||||
|
@ -407,7 +407,7 @@ describe(`${LibraryController.name} (e2e)`, () => {
|
|||
);
|
||||
});
|
||||
|
||||
it('should delete an extnernal library with assets', async () => {
|
||||
it('should delete an external library with assets', async () => {
|
||||
const library = await api.libraryApi.create(server, admin.accessToken, {
|
||||
type: LibraryType.EXTERNAL,
|
||||
importPaths: [`${IMMICH_TEST_ASSET_PATH}/albums/nature`],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue