Make sure the pagination in swh_snapshot_get_by_id uses the proper indexes
On uffizi, this query would use the snapshot_branch (name, target, target_type) index, which would match //way// too many rows and take forever.
Test Plan
tested the new function in a temp session on uffizi
Migrated from D3320 (view on Phabricator)