Skip Navigation
Show nav
Dev Center
  • Get Started
  • Documentation
  • Changelog
  • Search
  • Get Started
    • Node.js
    • Ruby on Rails
    • Ruby
    • Python
    • Java
    • PHP
    • Go
    • Scala
    • Clojure
    • .NET
  • Documentation
  • Changelog
  • More
    Additional Resources
    • Home
    • Elements
    • Products
    • Pricing
    • Careers
    • Help
    • Status
    • Events
    • Podcasts
    • Compliance Center
    Heroku Blog

    Visit the Heroku Blog

    Find news and updates from Heroku in the blog.

    Visit Blog
  • Log inorSign up
Hide categories

Categories

  • Heroku Architecture
    • Compute (Dynos)
      • Dyno Management
      • Dyno Concepts
      • Dyno Behavior
      • Dyno Reference
      • Dyno Troubleshooting
    • Stacks (operating system images)
    • Networking & DNS
    • Platform Policies
    • Platform Principles
  • Developer Tools
    • Command Line
    • Heroku VS Code Extension
  • Deployment
    • Deploying with Git
    • Deploying with Docker
    • Deployment Integrations
  • Continuous Delivery & Integration (Heroku Flow)
    • Continuous Integration
  • Language Support
    • Node.js
      • Working with Node.js
      • Node.js Behavior in Heroku
      • Troubleshooting Node.js Apps
    • Ruby
      • Rails Support
      • Working with Bundler
      • Working with Ruby
      • Ruby Behavior in Heroku
      • Troubleshooting Ruby Apps
    • Python
      • Working with Python
      • Background Jobs in Python
      • Python Behavior in Heroku
      • Working with Django
    • Java
      • Java Behavior in Heroku
      • Working with Java
      • Working with Maven
      • Working with Spring Boot
      • Troubleshooting Java Apps
    • PHP
      • PHP Behavior in Heroku
      • Working with PHP
    • Go
      • Go Dependency Management
    • Scala
    • Clojure
    • .NET
      • Working with .NET
  • Databases & Data Management
    • Heroku Postgres
      • Postgres Basics
      • Postgres Getting Started
      • Postgres Performance
      • Postgres Data Transfer & Preservation
      • Postgres Availability
      • Postgres Special Topics
      • Migrating to Heroku Postgres
    • Heroku Key-Value Store
    • Apache Kafka on Heroku
    • Other Data Stores
  • AI
    • Model Context Protocol
    • Vector Database
    • Heroku Inference
      • Inference Essentials
      • AI Models
      • Inference API
      • Quick Start Guides
    • Working with AI
  • Monitoring & Metrics
    • Logging
  • App Performance
  • Add-ons
    • All Add-ons
  • Collaboration
  • Security
    • App Security
    • Identities & Authentication
      • Single Sign-on (SSO)
    • Private Spaces
      • Infrastructure Networking
    • Compliance
  • Heroku Enterprise
    • Enterprise Accounts
    • Enterprise Teams
    • Heroku Connect (Salesforce sync)
      • Heroku Connect Administration
      • Heroku Connect Reference
      • Heroku Connect Troubleshooting
  • Patterns & Best Practices
  • Extending Heroku
    • Platform API
    • App Webhooks
    • Heroku Labs
    • Building Add-ons
      • Add-on Development Tasks
      • Add-on APIs
      • Add-on Guidelines & Requirements
    • Building CLI Plugins
    • Developing Buildpacks
    • Dev Center
  • Accounts & Billing
  • Troubleshooting & Support
  • Integrating with Salesforce
  • Heroku Enterprise
  • Heroku Connect (Salesforce sync)
  • Heroku Connect Troubleshooting
  • Diagnosing Heroku Connect Performance Issues

Diagnosing Heroku Connect Performance Issues

English — 日本語に切り替える

Last updated December 08, 2022

Table of Contents

  • Read Issues
  • Write Issues

A number of factors can affect sync performance with Heroku Connect. Follow the steps in this article to diagnose perceived read or write performance issues.

For more info on what affects sync speed and best practices, see Optimizing Heroku Connect performance.

Read Issues

Step 1: Review Mapping State

There are a number of read issues that require user intervention. Check the state of your mapping in the Heroku Connect dashboard, CLI, or API. See Mapping States Reference for how to resolve.

Step 2: Review Application Logs

Using your application’s log drain, find logs that look like app[herokuconnect] and have a ↓ character in them. This log entry has an event string that resembles:

Lead UPDATE ↓DATABASE 1 rows (0.01 secs)

This example string can be read as: Your database took 0.01 seconds to process the update to 1 row from the Salesforce Lead object.

If you enabled Accelerated Polling, you can also see log messages like:

Custom_Account__c, Streaming poll found 2 changes

This example indicates that a sooner-than-scheduled poll occurred and found 2 changes for Custom_Account_c to synchronize.

See Common Log Messages for more examples and explanations.

Step 3: Investigate Database Performance Issues

It’s possible that your database is slow at processing changes from Salesforce. Investigate your database for issues. Common causes include having too many indexed columns on a PostgreSQL table. See Watch For Postgres Performance Issues for more info.

Your database can also be slow if it’s undersized. Use at least a standard-4, premium-4, private-4 or shield-4 plan for production Connect use cases. See Choose a Sufficient Heroku Postgres Plan for more info.

Step 4: Run Heroku Connect Diagnostics

Heroku provides a CLI plugin to inspect the current state of your connection and perform basic operations. The connect:diagnose command runs some diagnostics to identify common problems. See Heroku Connect Diagnostics for more info.

It’s best practice to keep the size of your mapped objects small for faster performance. The diagnose command helps identify the number of mappings and number of fields per object that’s optimal for your connection. See Minimize the Size of the Mapped Object for more info.

Step 5: Check For Issues with Your Salesforce Org

Check the Salesforce Status site to see if there are current issues with your org.

The physical distance between your Heroku Connect cell and your Salesforce instance also impacts latency. You can find your cell in Heroku Connect’s dashboard settings. Check the list of regions available for Connect cells here and determine if there’s a region closer to your Salesforce org available.

Step 6: File a Support Ticket for More Assistance

If the previous steps don’t reveal performance issues, then there could be an issue with Heroku Connect itself. File a ticket so that Heroku Support can investigate.

Write Issues

Here are some ways to find errors and any potential bottlenecks caused by your Salesforce org or your Heroku Postgres database.

Step 1: Review the Trigger Log For Write Errors

Writes to Salesforce can fail for a number of reasons, including planned maintenance windows. In cases where Salesforce is unavailable, Connect queues writes until Salesforce is available again. In all other cases, resolving errors requires user intervention. See Heroku Connect Write Errors for more info.

Step 2: Review Application Logs

Using your application’s log drain, find logs that look like app[herokuconnect] and have a ↑ character in them. This log entry has an event string that looks like:

1 Custom_Account__c INSERT ↑SALESFORCE 1 rows total (0.28 secs) [SOAP]

This example string can be read as: Heroku Connect inserted 1 row from the custom_account__c table in your database into Salesforce via the SOAP API. It took Salesforce 0.28 seconds to process the insertion.

See Common Log Messages for more examples and explanations.

Step 3: Run Heroku Connect Diagnostics

Heroku provides a CLI plugin to inspect the current state of your connection and perform basic operations. The connect:diagnose command runs some diagnostics to identify common problems. See Heroku Connect Diagnostics for more info.

Step 4: Investigate Potential Performance Issues with Your Salesforce Org

If you have high response times to API requests, look for potential issues in your Salesforce org. For example, misbehaving Apex triggers or workflows can slow down Connect’s ability to write.

The physical distance between your Heroku Connect cell and your Salesforce instance also impacts latency. You can find your cell in Heroku Connect’s dashboard settings. Check the list of regions available for Connect cells here and determine if there’s a region closer to your Salesforce org available.

Step 5: Investigate Potential Performance Issues with Your Database

If the Salesforce API response times are reasonable, then Heroku Connect could be slow at retrieving records from your Trigger Log in your database. Inspect your database with a tool like pg:diagnose. See Watch For Postgres Performance Issues for more info.

Your database can also be slow if it’s undersized. Use at least a standard-4, premium-4, private-4 or shield-4 plan for production Connect use cases. See Choose a Sufficient Heroku Postgres Plan for more info.

Step 6: File a Support Ticket for More Assistance

If the previous steps don’t reveal performance issues, then there could be an issue with Heroku Connect itself. File a ticket so that Heroku Support can investigate.

Keep reading

  • Heroku Connect Troubleshooting

Feedback

Log in to submit feedback.

Heroku Connect Write Errors Heroku Connect Diagnostics

Information & Support

  • Getting Started
  • Documentation
  • Changelog
  • Compliance Center
  • Training & Education
  • Blog
  • Support Channels
  • Status

Language Reference

  • Node.js
  • Ruby
  • Java
  • PHP
  • Python
  • Go
  • Scala
  • Clojure
  • .NET

Other Resources

  • Careers
  • Elements
  • Products
  • Pricing
  • RSS
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku Blog
    • Heroku News Blog
    • Heroku Engineering Blog
  • Twitter
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku
    • Heroku Status
  • Github
  • LinkedIn
  • © 2025 Salesforce, Inc. All rights reserved. Various trademarks held by their respective owners. Salesforce Tower, 415 Mission Street, 3rd Floor, San Francisco, CA 94105, United States
  • heroku.com
  • Legal
  • Terms of Service
  • Privacy Information
  • Responsible Disclosure
  • Trust
  • Contact
  • Cookie Preferences
  • Your Privacy Choices