Whole-library and favorites queries return lists split into chunks of at
most 8,192 values, and search keeps the top 500 per section. Favorite
writes and song detail lookups read whole ranges instead of one id at a
time, and large unfavorites finish in scheduled batches, so they stay
under Convex's 4,096 reads per function.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Favorites now live in a `favorites` table, one row per favorite.
`migrations.migrateUsers` schedules a per-user copy of the legacy arrays,
and writes migrate the caller first. Public query and mutation shapes are
unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>