Bonfire.API.MastoCompat.Mappers.BatchLoader (Bonfire v1.0.1-social-alpha.28)

View Source

Batch loads stats for multiple entities to avoid N+1 queries.

Summary

Functions

map_accounts(users, opts \\ [])

Maps users to Mastodon Account format with batch-loaded stats.

preload_account_stats(users)

preload_follow_counts(users)

preload_status_counts(users)