Skip to content

perf(storage): fetch enclosures in GetEntries in GetEntry#4442

Draft
jvoisin wants to merge 1 commit into
miniflux:mainfrom
jvoisin:enccl
Draft

perf(storage): fetch enclosures in GetEntries in GetEntry#4442
jvoisin wants to merge 1 commit into
miniflux:mainfrom
jvoisin:enccl

Conversation

@jvoisin

@jvoisin jvoisin commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator

GetEntry() was issuing a separate GetEnclosures() query for the single returned entry. The batch path already exists: fetchEntries() checks the fetchEnclosures flag and calls GetEnclosuresForEntries() in one round-trip.

Set fetchEnclosures=true so GetEntry() uses that path, removing one database round-trip per call.

GetEntry() was issuing a separate GetEnclosures() query for the single returned
entry. The batch path already exists: fetchEntries() checks the fetchEnclosures
flag and calls GetEnclosuresForEntries() in one round-trip.

Set fetchEnclosures=true so GetEntry() uses that path, removing one database
round-trip per call.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant