thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Business Platforms & EA · Intermediate

Bulkification

Writing code or flows to handle many records at once without per-record queries or DML.

Definition

Bulkified Apex processes Trigger.new as a collection, queries once using sets of IDs and maps, and performs DML on lists outside loops. Triggers can receive up to 200 records per chunk.

Example

Map<Id, Account> accts = new Map<Id, Account>([SELECT Id FROM Account WHERE Id IN :ids]);

Exam tip

Any SOQL or DML inside a for loop is the classic wrong answer.

Related terms