Postgresql – Select from big table based on sample from small table: join, cte or static values?
I have 2 tables in Postgres, one is of about 200M records, and the other a few hundreds. I want to get 10 values from the small table and find the corresponding values in the long table. both are indexed.…