I have a Ruby on Rails application deployed on Heroku. The app includes 8 optional text fields that users can choose to fill or leave empty as needed.
However, the more text fields a user fills out, the heavier the processing load on my app. If there are more than 5 fields filled in, the app takes longer than 30 seconds to process the request, leading to a timeout issue on Heroku.
Is there a solution to address this problem?
I've heard that using JavaScript and Ajax can help split a request into two parts, potentially avoiding the timeout problem. However, I'm unsure of how to implement this effectively.
Appreciate any guidance on this matter!