Snippet: Set maximum number of post revisions to avoid DB overhead
Revisions are stored as separate posts, the more revisions the more space they will take inside database. To avoid this database overhead there is a constant inside config file for maximum revisions.
Add following code to “wp-config.php”
//It will configure to save the last 15 revisions. if (!defined('WP_POST_REVISIONS')) define('WP_POST_REVISIONS', 15);