Running a SOQL query to count asynchronous Apex activity created within a given time window, for example:
SELECT COUNT(Id) FROM AsyncApexJob WHERE CreatedDate >= :startDateTime AND CreatedDate <= :endDateTime
returns a much smaller number than the "Async Apex Executions" count shown on the Setup → Apex Jobs page for that same period.
Example: A batch job with 500 chunks shows 500 Async Apex Executions on the Apex Jobs page, but a SOQL count on AsyncApexJob for the same run returns only a handful of records — the exact number varies by run.
AsyncApexJob is a job-tracking object, not an execution log. For a single Batch Apex run, Salesforce creates a small set of AsyncApexJob "housekeeping" records to represent and manage the job as a whole, using job types such as:
finish() triggers job chaining).These housekeeping records don't multiply per chunk — the Apex Jobs page counts actual executions (one per chunk), so it scales with data volume while AsyncApexJob's row count does not.
AsyncApexJobJobItemsProcessed and TotalJobItems fields on the corresponding AsyncApexJob parent record, rather than counting rows.005460516

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.