#4833 - Large Volume of Records
Hi Team,
We have a large volume of records (approx 20GB) created in SugarChimp tables. I have updated to the latest version of SugarChimp and run a repair and rebuild in Sugar. Our support team has said that following this, they will need to truncate the database tables. As they do not know what the purpose of the records created is, they hesitate to delete them.
Are you able to elaborate on what this data is and let us know if it's ok to delete?
7 months ago
Happy to help. Can you tell me what tables are taking up so much space? Over time some tables, such as the sugarchimpactivity table, will begin to grow larger as we sync over campaign activity from Mailchimp. We can usually truncate some tables, but knowing the table names they're looking to truncate will help provide insight into what the table does and how to help them not grow so large going forward.
Thanks, Heidi
7 months ago
Hi Heidi,
the sugarchimpactivity_leads table is at 4.4 GB (8.8 M rows) and sugarchimpactivity 11.7 GB (8.8 M Rows). The additional data is on our test instance so I'm sure that's ok to delete : sugarchimpactivity_leads 5.2 GB / sugarchimpactivity_contacts 194.3 MB
Thanks!
7 months ago
Perfect, thanks. Looks like these are the activities tables and are totally okay to truncate. They're responsible for holding the campaign activity we sync from Mailchimp to Sugar and display within the Mailchimp Activities subpanel. Over time, these tables to get larger as we sync those activities over. If you're okay losing all the activities, they can be fully emptied. If you want to keep more recent activities, you can have Sugar truncate rows that are older than a certain timeframe, such as 30 days.
To prevent the tables from getting this large in the future, you can set SugarChimp to automatically delete synced activities beyond a certain number of days. Since a lot of customers don't regularly review campaigns sent beyond 90 or 180 days, for example, those activities can be deleted from Sugar. To update that setting, you can follow the step below.
Let me know if you have any other questions!
Best, Heidi
7 months ago
Thanks!