[Bug]: Azure Blob Storage connector calls getProperties() for every blob sequentially on each sync (unusable on mobile with large vaults)
What happened?
The Azure Blob Storage connector (PRO, alpha) fetches the properties of every blob, one at a time and sequentially, on every sync, even though the listing already requests metadata. On a vault with ~14.8k files this makes each sync take 15 to 35 minutes on Android before a single byte is downloaded, and on mobile the sync never completed.
Code (main.js 0.5.25, Azure walk()):
for (... listBlobsFlat({prefix: this.remotePrefix, includeMetadata: !0}) ...) {
const t = this.containerClient.getBlockBlobClient(e.name),
r = yield t.getProperties(), // one HEAD per blob, awaited inside the loop
l = sh(e.name, r, this.remotePrefix);
...
}listBlobsFlat is already called with includeMetadata: true, so e.metadata, e.properties.contentLength and e.properties.lastModified are available from the listing itself. The extra getProperties() per blob is redundant and, because it is awaited serially, it turns the walk into N round trips.
Observed numbers (Azure Storage metrics, Transactions by ApiName):
- Vault: 14,828 blobs (5.3 GB), rclone-base64 encryption, container in Brazil South.
- Desktop (Windows): initial upload fine; each later sync issues ~14.8k
GetBlobProperties(plus oneBlobPreflightRequesteach), noGetBlob. - Android (Obsidian 1.13.x, Samsung S25 Ultra): ~1,000
GetBlobPropertiesper minute, so the listing stage (3/8) alone takes ~15 min on a good Wi-Fi. Any moment the app goes to background restarts the walk from zero. The one run that completed the walk failed right after it, before anyGetBlob, without a visible error (no console on mobile at that time). - Switching the same vault to an S3 backend (Cloudflare R2): the plan for 14,829 files was built in seconds and the mobile download started within a minute. So the issue is specific to the Azure connector.
Suggestion: build the remote entry from the listing item (item.properties + item.metadata) and only call getProperties() as a fallback when metadata is missing; or at least run the per-blob calls with the configured concurrency instead of awaiting them one by one.
Thanks for the plugin, the S3 path works great.
What OS are you using?
Windows 11 (desktop) and Android 15 (Samsung S25 Ultra)
What remote cloud services are you using?
Azure Blob Storage
Version of the plugin
0.5.25
Version of Obsidian
Desktop 1.13.7, mobile 1.13.x
Using password or not
Yes (rclone-base64)
Ensure no sensitive information
Yes, no SAS URL, keys or passwords in this report.
Source: remotely-save/remotely-save