Check the size of diff files, before saving them into DB.