Is it possible (to mix two threads) that you had CLUSTERed the table on the old database in a way that retrieved the recordsin this query faster?
pgsql-performance by date:
Соглашаюсь с условиями обработки персональных данных