baby-namr-api fetches all name records before filtering them. This is an issue because loading too many records into memory causes Heroku to raise an error. Further it takes unnecessarily long to fetch all of the records.
Instead, the rails app should selectively fetch records.
baby-namr-api fetches all name records before filtering them. This is an issue because loading too many records into memory causes Heroku to raise an error. Further it takes unnecessarily long to fetch all of the records.
Instead, the rails app should selectively fetch records.