Câu 80: Salesforce Certified Platform Developer I
A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit. The above method might be called during a trigger execution via a Lightning component. Which technique should be implemented to avoid reaching the governor limit?
Nội dung câu hỏi
A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit. The above method might be called during a trigger execution via a Lightning component. Which technique should be implemented to avoid reaching the governor limit?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. Refactor the code above to perform the SOQL query only if the Set of opportunityIds contains less 100 Ids.
- B. Use the System.Limits.getLimitQueries() method to ensure the number of queries is less than 100.
- C. Refactor the code above to perform only one SOQL query, filtering by the Set of opportunityIds. — đáp án hiện tại
- D. Use the System.Limits.getQueries() method to ensure the number of queries is less than 100.
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.