Atomic.new([] of ChannelVideo)
" SELECT DISTINCT ON (ucid) *\n FROM channel_videos\n WHERE ucid IN (SELECT channel FROM (SELECT UNNEST(subscriptions) AS channel FROM users) AS d\n GROUP BY channel ORDER BY COUNT(channel) DESC LIMIT 40)\n ORDER BY ucid, published DESC"
Invidious::Jobs::BaseJob