[PR #994] [MERGED] fix(server): Server freezes when getting statistic #8855

Closed
opened 2026-02-05 13:54:24 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/immich-app/immich/pull/994
Author: @alextran1502
Created: 11/20/2022
Status: Merged
Merged: 11/20/2022
Merged by: @alextran1502

Base: mainHead: fix/server-freeze-on-get-server-stats


📝 Commits (2)

  • 3bc45fa fix(server): Server freeze when getting statistic
  • 45150e5 remove deadcode

📊 Changes

12 files changed (+187 additions, -259 deletions)

View changed files

📝 mobile/openapi/doc/UsageByUserDto.md (+0 -1)
📝 mobile/openapi/lib/model/album_response_dto.dart (+41 -53)
📝 mobile/openapi/lib/model/asset_response_dto.dart (+58 -69)
📝 mobile/openapi/lib/model/usage_by_user_dto.dart (+1 -9)
📝 mobile/openapi/lib/model/user_response_dto.dart (+41 -53)
📝 server/apps/immich/src/api-v1/server-info/response-dto/server-stats-response.dto.ts (+0 -2)
📝 server/apps/immich/src/api-v1/server-info/response-dto/usage-by-user-response.dto.ts (+2 -3)
📝 server/apps/immich/src/api-v1/server-info/server-info.service.ts (+33 -48)
📝 server/immich-openapi-specs.json (+1 -1)
📝 web/src/api/open-api/api.ts (+0 -6)
📝 web/src/lib/components/admin-page/server-stats/server-stats-panel.svelte (+8 -12)
📝 web/src/lib/components/admin-page/server-stats/stats-card.svelte (+2 -2)

📄 Description

Fixes performance issues when calculating server stats #976.

The stats are calculated from the database to avoid operation on disks.

Remove 'object' stat


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/immich-app/immich/pull/994 **Author:** [@alextran1502](https://github.com/alextran1502) **Created:** 11/20/2022 **Status:** ✅ Merged **Merged:** 11/20/2022 **Merged by:** [@alextran1502](https://github.com/alextran1502) **Base:** `main` ← **Head:** `fix/server-freeze-on-get-server-stats` --- ### 📝 Commits (2) - [`3bc45fa`](https://github.com/immich-app/immich/commit/3bc45fa67d75289c9be3edd8127a35de439afb77) fix(server): Server freeze when getting statistic - [`45150e5`](https://github.com/immich-app/immich/commit/45150e507bce85246b7e2cf0fdffd910e1f9d039) remove deadcode ### 📊 Changes **12 files changed** (+187 additions, -259 deletions) <details> <summary>View changed files</summary> 📝 `mobile/openapi/doc/UsageByUserDto.md` (+0 -1) 📝 `mobile/openapi/lib/model/album_response_dto.dart` (+41 -53) 📝 `mobile/openapi/lib/model/asset_response_dto.dart` (+58 -69) 📝 `mobile/openapi/lib/model/usage_by_user_dto.dart` (+1 -9) 📝 `mobile/openapi/lib/model/user_response_dto.dart` (+41 -53) 📝 `server/apps/immich/src/api-v1/server-info/response-dto/server-stats-response.dto.ts` (+0 -2) 📝 `server/apps/immich/src/api-v1/server-info/response-dto/usage-by-user-response.dto.ts` (+2 -3) 📝 `server/apps/immich/src/api-v1/server-info/server-info.service.ts` (+33 -48) 📝 `server/immich-openapi-specs.json` (+1 -1) 📝 `web/src/api/open-api/api.ts` (+0 -6) 📝 `web/src/lib/components/admin-page/server-stats/server-stats-panel.svelte` (+8 -12) 📝 `web/src/lib/components/admin-page/server-stats/stats-card.svelte` (+2 -2) </details> ### 📄 Description Fixes performance issues when calculating server stats #976. The stats are calculated from the database to avoid operation on disks. Remove 'object' stat --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 13:54:24 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#8855