📊
Governor Limits — ورقة مرجعية
جدول واضح وقابل للتصفية لحدود Salesforce لكل معاملة، مع فصل واضح بين السياقين المتزامن وغير المتزامن.
| الفئة | الحد | متزامن | غير متزامن |
|---|---|---|---|
| SOQL | Total SOQL queries | 100 | 200 |
| SOQL | Records retrieved by SOQL | 50,000 | 50,000 |
| SOQL | Records retrieved by Database.getQueryLocator | 10,000 | 10,000 |
| SOSL | Total SOSL queries | 20 | 20 |
| SOSL | Records retrieved by a single SOSL | 2,000 | 2,000 |
| DML | Total DML statements | 150 | 150 |
| DML | Records processed by DML | 10,000 | 10,000 |
| DML | Approval.process / Database.emptyRecycleBin calls | 150 | 150 |
| المعالج / الذاكرة |
Maximum CPU time (timeout) CPU time excludes time waiting for callouts and database operations.
|
10,000 ms | 60,000 ms |
| المعالج / الذاكرة | Maximum heap size | 6 MB | 12 MB |
| الاتصالات الخارجية | Callouts (HTTP / web service) | 100 | 100 |
| الاتصالات الخارجية | Cumulative callout timeout | 120 s | 120 s |
| غير متزامن |
@future method invocations @future methods cannot be called from an asynchronous context.
|
50 | 0 |
| غير متزامن |
Jobs added to the queue (System.enqueueJob) In Queueable/Batch/@future you can chain only 1 more Queueable job.
|
50 | 1 |
| غير متزامن |
Batch jobs queued/active Holding/Queued + Active combined.
|
5 | 5 |
| البريد | sendEmail method calls | 10 | 10 |
| أخرى |
Total executed statements Indirectly bounded by the CPU time limit.
|
no hard limit | no hard limit |
| أخرى | Maximum describe-recursion stack depth | 100 | 100 |
لا توجد نتائج للمعايير المحدَّدة.
تنطبق الحدود على معاملة Apex واحدة. القيم للمرجع فقط — تحقّق دائمًا من القيم الحالية في توثيق Salesforce الرسمي «Apex Governor Limits».