Learn Apex
Bulkification
Design code so one trigger invocation can handle many rows — collect Ids, query once, DML in batches.
Bulk

Bulkification is not a keyword — it is a habit: assume Trigger.new has up to 200 elements. Loop structure should not multiply SOQL/DML.

Toy: rows in this run = 20

SOQL statements

20

DML statements

20

Per-row (avoid)
for (Opportunity o : Trigger.new) {
    Account a = [SELECT Id FROM Account WHERE Id = :o.AccountId LIMIT 1];
}