Loading
Slack製品の問い合わせ先はSalesforce Helpへ統合・変更されます続きを読む
PHPの脆弱性に関する監視状況について 続きを読む
メールアドレスがデフォルトのログイン方式となります 続きを読む
Scalability
ApexGuru Antipattern: SOQL with Negative Expressions

ApexGuru Antipattern: SOQL with Negative Expressions

SOQL queries that use negative expressions such as NOT IN or != don't index effectively, leading to full-table scans. Less-efficient database operations increase query time and CPU usage. Avoid negative expressions. Use positive expressions wherever possible.

Scope

Detection only

Detection Example

apex
  [SELECT Id FROM Opportunity WHERE StageName NOT IN ('Closed Won', 'Closed Lost')];
 
読み込み中
Salesforce Help | Article