How to provide an API client with 1,000,000 database results? How to provide an API client with 1,000,000 database results? postgresql postgresql