Expand description
Insights Dashboard — compute aggregate statistics from the photo library.
compute() runs ~12 SQL queries against the photos/faces/albums tables
and returns an InsightsData struct with everything the view needs.
Structs§
- Camera
Stat - A camera stat row for the camera-breakdown section.
- Country
Stat - A country stat row for the top-countries section.
- Insights
Data - All data needed by the Insights dashboard view. Boxed in the message because it is large.
- Location
Stat - A location stat row for the top-locations section.
- Person
Stat - A person stat row for the top-people section.
Functions§
- compute
- Compute all insights data. Designed to run inside
spawn_blocking.