Northern Trail Outfitters の ERP は Salesforce と統合されており、1 日に数百万件の連絡先を同期しています。特定のデータが同期されないようにするために、統合では、共有階層によってフィルタリングされた SOQL クエリを使用します。
統合のパフォーマンスを向上させるためにアーキテクトが行うべきことはどれですか?
2つの答えを選択してください
正解:C,D
Option C is correct because including selective criteria in query filters can improve the performance of the integration. Selective criteria are filters that reduce the number of records that need to be scanned by the query optimizer, such as indexed fields, standard indexes, or custom indexes. Selective criteria can help the query run faster and avoid hitting the query timeout limit or the query row limit.
Option D is correct because removing the sharing restrictions can improve the performance of the integration.
Sharing restrictions are filters that limit the access to records based on the user's role, profile, or sharing rules.
Sharing restrictions can add complexity and overhead to the query execution, as they require additional joins and calculations. Removing the sharing restrictions can simplify the query and reduce the number of records that need to be processed.
Option A is incorrect because including non-selective criteria in query filters can degrade the performance of the integration. Non-selective criteria are filters that do not reduce the number of records that need to be scanned by the query optimizer, such as non-indexed fields, formula fields, or OR conditions. Non-selective criteria can cause the query to run slower and hit the query timeout limit or the query row limit.
Option B is incorrect because removing the query filters can degrade the performance of the integration.
Query filters are conditions that specify which records to retrieve from the database, such as WHERE clauses or LIMIT clauses. Query filters can help the query run faster and avoid retrieving unnecessary or unwanted data. Removing the query filters can increase the number of records that need to be processed and transmitted by the integration.
References: Working with Very Large SOQL Queries: Improve performance with custom indexes using Salesforce Query Plan tool: Querying Data That Respects UserPermissions: How does sharing affect SOQL performance?: SOQL SELECT Syntax : SOQL Best Practices