Paging results for media sources with large number of items #1131
Unanswered
allenporter
asked this question in
Entity Models
Replies: 1 comment
-
The proposal seems fine, but it's a bit unclear exactly how it would work. Could you maybe open a draft implementation PR, or add some code example here @allenporter ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Proposal
Extend the media source API to improve performance and user experience for media sources with a large number of items.
Background
Media sources with a large number of items in a folder have two choices on how they can handle things:
An example of (a) is the nest integration which reads recent camera snapshots from a local json file and returns 1.7MB response for 1k items. An example of (b) is Google Photos Recent Items where I made an arbitrary choice to truncate to 100 most recent photos (and it also does (a) in some scenarios)
Proposal Overview
A media source supports browsing based on an identifier and returns an object with a list of child nodes that are displayed in a grid. The changes would be:
Usage Survey
Implications
Alternatives & Caveats
Beta Was this translation helpful? Give feedback.
All reactions