by Fanatical Labs

Save Your Team Countless Hours. SugarChimp syncs your lists in both directions so you can work in your preferred app. Segment and group your Mailchimp subscribers based on Sugar data so you can market to the right people at the right time. Compatible with all versions and editions of Sugar and SuiteCRM. Created by Fanatical Labs, 2023 SugarCRM Partner Award Winner.

Free Trial

By clicking you consent to share your profile with the developer

#4833 - Large Volume of Records

Closed General Question created by sarahsmith Verified Purchase 8 months ago

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?

  1. fanaticallabs member avatar

    Fanatical Labs Provider Affiliate

    8 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

    • sarahsmith member avatar

      sarahsmith Verified Purchase

      8 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!

    • fanaticallabs member avatar

      Fanatical Labs Provider Affiliate

      8 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.

      1. From within SugarChimp's Health Status page, right click anywhere on the page and select Inspect.
      2. Click the Console tab
      3. Copy/paste the following into the console and press Enter: SUGAR.App.api.call('get',SUGAR.App.api.buildURL('SugarChimp/setting/remove_activities_after_days/90'),{},{});

      Let me know if you have any other questions!

      Best, Heidi

    • sarahsmith member avatar

      sarahsmith Verified Purchase

      8 months ago

      Thanks!

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
Rating