It is recommended to clean your Dynamics CRM database before upgrading. You may not want to take your old historical data that is not required—for example, completed system job records. You can refer to https://support.microsoft.com/en-us/help/968520/performance-is-slow-if-the-asyncoperationbase-table-becomes-too-large to clean async operation data.