Skip to main content

Module insights

Module insights 

Source
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§

CameraStat
A camera stat row for the camera-breakdown section.
CountryStat
A country stat row for the top-countries section.
InsightsData
All data needed by the Insights dashboard view. Boxed in the message because it is large.
LocationStat
A location stat row for the top-locations section.
PersonStat
A person stat row for the top-people section.

Functions§

compute
Compute all insights data. Designed to run inside spawn_blocking.