How to limit the number of revisions in WordPress

WordPress has an interesting Revisions System. Each saved draft or published update is stored as a separate row in the DB, and you can compare any two specific revisions. In addition, there’s also a special “autosave revision” that is kept there from time to time while you edit your thoughts.Movie Rings (2017)

But if you like tidiness and a bounded number of rows in your DB tables, you may limit or disable the number of revisions. The easiest way is to edit wp-config.php, by adding:
define( 'WP_POST_REVISIONS', 3 );
Instead of the 3 above that will limit the number of revisions to 3 + the autosave one, you may choose any other integer > 0. To disable all revisions (except the autosave one) use 0 or false instead. To remove the limit either remove this line or use -1 or true. This is all explained in WordPress Codex as well, but whatever your final choice is, make sure you add this before the line:
/* That's all, stop editing! Happy blogging. */

Hope this helps.