tuna42na / baby-namr

Baby Naming Application Frontend
0 stars 1 forks source link

Fetch select records from DB #3

Closed trvslhlt closed 3 years ago

trvslhlt commented 3 years ago

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.

cwkarwisch commented 3 years ago

This bug has been addressed in this PR.

The change has been merged and deployed, so the app is now responding in a timely manner to requests for filtered results.