Shows us the explain analyze. There is no problem with a large number of records, as long as you're not expecting to process all of them all the time.
pgsql-performance by date:
Соглашаюсь с условиями обработки персональных данных