When saving changes to a model in rails, two popular gems to track changes are paper_trail and audited. These gems create records that contain versioning information every time the model is updated.
How can I reduce the number of records created when saving user input as they type?
For example:
- User start filling out an input for the title of a model
- User starts typing "App" then a few second later "le"
- The database now contains two versioning records "App" and "le"
Note: Putting a delay on the user interface (say 250ms before saving) will reduce the number of records, but we will still have a bunch of updates that are really just one.