8/28/2023 0 Comments Soap vs rest salesforceAt the end of the day, hiring remains an art, a science - and a lot of work. Not every “A” candidate worth hiring will be able to answer them all, nor does answering them all guarantee an “A” candidate. There is more to interviewing than tricky technical questions, so these are intended merely as a guide. If there is no way to avoid nested loops then put filter conditions in such a way that you can reduce execution statements. So if data are not necessary then we should clear() them after we finish our use of a particular Map or List. The heap size mainly increases due to storing data retrieved from a database in a variable. Use filters to avoid storing unnecessary data in List and Map.Try to reuse maps that are already defined if you’re using them for the same purpose later on, or call clear() when you’re done with them to free up heap space as you go. Avoid using too many maps if not necessary. Expose Your Apex Class as a Web Service You can expose your Apex class methods as a REST or SOAP web service operation.Reduce using global variables if not needed.To reduce heap size, take the following steps: For asynchronous mode, the heap size limit is 12 MB, and for synchronous mode, the heap size limit is 6 MB. All of your global variables get stored on the heap. Heap size is the size of the temporary storage of your data while executing your code in synchronous mode. That means that updating 200 records costs the same as updating 1 record, if you place them in the same payload. API calls are rate-limited, limiting clients to the number of calls they are allowed to make daily.One API call costs one API call towards this limit. Also, sometimes to reproduce an issue and fix it, we need the exact same data, which is what a Full Copy sandbox gives you. An API call is an inbound request, an API callout is an outbound request. That’s because even if you wanted to debug directly in production, you can’t. Full Copy: When you want to replicate a production issue in a sandbox and fix it, then this sandbox is the perfect fit.Partial Copy: Generally, when we are dealing with large amounts of data and want to have real-time testing data, then this sandbox is helpful because Salesforce gives up to 10,000 records of each object from production data.Developer and Developer Pro: The only difference between these two being their data space, they are both used to code and enhance existing functionality and then move it to production.Standard configuration as built into Salesforce.Full Copy is the same as a production org, with the same record ids the production records have.Partial Copy provides 5GB of data space, records (a sample of selected objects), and sandbox template support.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |