function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
firefoxfirefox 

describeSObject() vs describeSObjects()

Hi, 

 

 I could see two methods, one for a single object and the other for object group.

 

Q) I would like to know whether is there any performance difference between sending a 'single object' to both methods.

 

1) In need of this because, I am planning to write a delegate method in a utility class so that others could use it. 

 

Here it is: [Java]

 

myDescribeSObj(String type){

myDescribeSObjs( new String[ ] { type }  );

}

 

myDescribeSObjs( String[ ] types ) { ----stuff------}   

 

 

So, if I write something like following, will there be any performance issues? or shall I be duplicating the post-describe()call-code in both methods.

--> In addition, please mention if you know any differences in this context  of Axis2.

Thanks.

Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell

describeSObjects() with a single object is the same as describeSObject, there's no perf difference.

All Answers

SuperfellSuperfell

describeSObjects() with a single object is the same as describeSObject, there's no perf difference.

This was selected as the best answer
firefoxfirefox

Thank you.