Spring 20 – API 48

In chapter 3 (LImits) I discuss the performance of Describe operations, in particular the Schema.getGlobalDescribe method. And while that particular function is still quite slow, the Schema.DescribeSObjects and SObjectType.getDescribe methods a new parameter SObjectDescribeOptions that enables lazy initialization of child relationship fields. This can significantly improve performance, especially if you aren’t looking at those properties.