I just tested it myself:
WITH arr AS (
SELECT array_agg((random()*18000000)::bigint) AS id FROM generate_series(0, 10000)
) SELECT * FROM arr
JOIN foxo.file ON file.id = ANY(arr.id)
Query complete 00:01:13.853
I just tested it myself:
WITH arr AS (
SELECT array_agg((random()*18000000)::bigint) AS id FROM generate_series(0, 10000)
) SELECT * FROM arr
JOIN foxo.file ON file.id = ANY(arr.id)
Query complete 00:01:13.853
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Sep 29, 2022, 8:32 AM EDT
test it.
WITH arr AS ( SELECT (random()*18000000)::bigint AS id FROM generate_series(0, 10000) ) SELECT * FROM arr JOIN foxo.file ON file.id = arr.id