

If there are yellow or red flags for these checks, review your mappings and reduce the number of fields mapped if possible. Run heroku connect:diagnose and check the Number of Fields and Number of Large Text Area Fields diagnostic checks. Heroku Connect Diagnostics helps you identify the number of mappings and number of fields per object that’s optimal for your connection. Note that the performance penalty is only paid on mappings that have several of these large text area fields. The extra time spent querying Salesforce’s API decreases the performance of Heroku Connect for the mapping(s) containing these fields. This means that Heroku Connect must make many more network requests to fetch your data than it would without those fields being mapped. Mapped fields that are Long Text Area or Rich Text Area tend to hold large amounts of data. The Salesforce API imposes restrictions on the size of responses or generated bulk results files.


Potential Pitfalls for the Ordered Writes Algorithm.Review the potential pitfalls carefully for each algorithm to choose the best one for your use case.

It is not possible to perform bulk writes to Salesforce when using the Merged Writes algorithm. The Ordered Writes algorithm is a prerequisite for using the Bulk API. Avoid Merged Writes if you have circular dependencies or use Apex triggers or process rules in Salesforce. In general, if you make many rapid changes in succession, Merged Writes is better for performance. When Heroku Connect is configured with bi-directional sync, determine which write algorithm, Ordered Writes or Merged Writes, is efficient for your use case. Choose the Best Write Algorithm For Your Use Case Watch out for these messages in your Heroku Connect logs, for example, BULK write batch to MAPPING_NAME ended due to REASON Will fall back to SOAP.įor more info, see Bulk vs SOAP API. Failed inserts cause a fallback from using the Bulk API to the SOAP API. Then all data is written to the database in one SQL statement. For example, in a Rails app, handle lookups and calculations in before_save callbacks rather than after_save.
CONNECR DBSCHEMA TO HEROKU UPDATE
