Skip to content

fix(auto-upload): stop rescanning on every media change - #18156

Open
alperozturk96 wants to merge 1 commit into
masterfrom
fix/auto-upload-scan
Open

alperozturk96 wants to merge 1 commit into
masterfrom
fix/auto-upload-scan

Conversation

@alperozturk96

@alperozturk96 alperozturk96 commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Changes

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI (N/A)

Each MediaStore change made every auto upload worker scan its whole
local folder again, although the content observer had already stored
the changed files, and it also started a device-wide media folder
detection. On large galleries this cost over a second of CPU per change
and kept the device busy while uploads with the move action produced
new changes. Folder detection still runs periodically and on app start.

Bulk changes were ignored until the periodic rescan, because JobScheduler
reports no changed uris when too many changed at once.

Assisted-by: ClaudeCode:claude-opus-5-5
@alperozturk96 alperozturk96 added this to the Nextcloud App 35.2.0 milestone Nov 27, 2026
@alperozturk96 alperozturk96 added 2. developing performance 🚀 Performance improvement opportunities (non-crash related) AI assisted labels Nov 27, 2026
@alperozturk96 alperozturk96 linked an issue Nov 27, 2026 that may be closed by this pull request
4 tasks done
@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

📱 QA build

Download app-qa-debug.apk
QR code Open the QR code for this download
Commit b3c009b
Version 18156
Available until 7 days after this build

The QA build installs alongside a released Nextcloud app, so you can keep
using your existing install while testing.

Downloading the file requires a GitHub account, so open this link on the
device you want to test on, or transfer the APK to it.

@github-actions

Copy link
Copy Markdown

SpotBugs

CategoryBaseNew
Bad practice2222
Correctness4040
Dodgy code106106
Experimental11
Malicious code vulnerability11
Multithreaded correctness1313
Performance1717
Security1515
Total215215

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing AI assisted performance 🚀 Performance improvement opportunities (non-crash related)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

full-gallery rescan on every MediaStore change

1 participant