[PR #831] [CLOSED] [Mobile]: 830: make sure upload re-uses http client #8780

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

📋 Pull Request Information

Original PR: https://github.com/immich-app/immich/pull/831
Author: @esiqveland
Created: 10/16/2022
Status: Closed

Base: mainHead: mobile_upload_reuse_httpclient


📝 Commits (1)

  • 65ad72b 830: make sure upload re-uses http client

📊 Changes

6 files changed (+204 additions, -85 deletions)

View changed files

📝 mobile/lib/modules/backup/background_service/background.service.dart (+7 -4)
📝 mobile/lib/modules/backup/models/current_upload_asset.model.dart (+9 -1)
📝 mobile/lib/modules/backup/models/error_upload_asset.model.dart (+7 -1)
📝 mobile/lib/modules/backup/providers/backup.provider.dart (+5 -3)
📝 mobile/lib/modules/backup/services/backup.service.dart (+67 -76)
mobile/lib/modules/backup/services/uploader.service.dart (+109 -0)

📄 Description

Initial upload on a large timeline is slow. My 8000 photos takes at least 3 hours even when on the same local network.

I noticed that the http client is created new for every single file in the upload. This breaks connection pooling/caching, making each upload setup a new connection.

This also moves the upload process towards centering around the CurrentUploadAsset object.

I created a issue here:
https://github.com/immich-app/immich/issues/830


🔄 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/831 **Author:** [@esiqveland](https://github.com/esiqveland) **Created:** 10/16/2022 **Status:** ❌ Closed **Base:** `main` ← **Head:** `mobile_upload_reuse_httpclient` --- ### 📝 Commits (1) - [`65ad72b`](https://github.com/immich-app/immich/commit/65ad72b248e4311814ff53c80f6663db9ed05615) 830: make sure upload re-uses http client ### 📊 Changes **6 files changed** (+204 additions, -85 deletions) <details> <summary>View changed files</summary> 📝 `mobile/lib/modules/backup/background_service/background.service.dart` (+7 -4) 📝 `mobile/lib/modules/backup/models/current_upload_asset.model.dart` (+9 -1) 📝 `mobile/lib/modules/backup/models/error_upload_asset.model.dart` (+7 -1) 📝 `mobile/lib/modules/backup/providers/backup.provider.dart` (+5 -3) 📝 `mobile/lib/modules/backup/services/backup.service.dart` (+67 -76) ➕ `mobile/lib/modules/backup/services/uploader.service.dart` (+109 -0) </details> ### 📄 Description Initial upload on a large timeline is slow. My 8000 photos takes at least 3 hours even when on the same local network. I noticed that the http client is created new for every single file in the upload. This breaks connection pooling/caching, making each upload setup a new connection. This also moves the upload process towards centering around the CurrentUploadAsset object. I created a issue here: https://github.com/immich-app/immich/issues/830 --- <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:53:09 +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#8780