With the Batch Apex framework, you can implement a chain of workers that form a job that iterates over a large set of data that you need to process. The platform takes care of sequencing the workers and allows you to maintain optionally some state between each if desired. In this section, we will review a job that processes Race Data records in bulk.
So far, the Race Data records created using the Apex code you ran earlier are not, by default, associated with the applicable Contestant records (this was intentional to emulate an external data load that would not be aware of the corresponding Contestant record IDs). In order to make use of the Race Data records in the rest of the application, this relationship ...