Questions tagged [performance]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
3answers
1k views

Set performance - is using addAll and removeAll more performant than for loops?

I am wondering what is more performant in getting the difference between two sets: Something like this: method(Set<Id> a, Set<Id> b) { Set<Id> result = a; result.addAll(b); ...
4
votes
1answer
125 views

Speedup Testing with Force.com IDE using slim Logs - but how to set the log-level?

A lot has been written here about slow development in general and slow testing in particular e. g.: Slow development Faster unit tests? For my use case I found one reason for slow testing while ...
3
votes
2answers
1k views

Make an existing text field an indexed External Id. Will/can Support do it?

In our ISV package we had to "convert" a pre-indexed Lookup field to a Text(255) field as we wanted to keep Ids even when the referenced record was deleted. After we did that the performance of SOQL ...
3
votes
2answers
1k views

Track number of API calls for an application

I'm working on an application, which uses SOAP, REST and Bulk API to integrate with Salesforce. Is there any API call in Salesforce which enables me to track how much API calls did I consume in a ...
2
votes
4answers
2k views

SOAP API - getUpdated()/retrieve() vs query()/queryMore()

The Salesforce SOAP API's getUpdated() is designed to return all objects of a given type, inserted or updated within a given timeframe. IDs for updated records will then be returned and the Salesforce ...
2
votes
2answers
5k views

SObject Numeric field - Integer.valueOf() vs casting

When working in Apex it is not uncommon for us to work with a numeric field that has a 0 scale. To use that with some built in functions we need to use an Integer. To provide an example, let's say we ...
1
vote
1answer
872 views

Capturing Lightning Performance (Page Load Time) without any special tools?

I have been requested to come up with a report or analysis that could "show performance of the page load for a certain period of time or something similar" Business problem: Some customers currently ...
0
votes
2answers
71 views

Can any one please tell me which one is the optimized code for preventing duplicate accounts to be inserted or updated

Which one of the following triggers are optimized for preventing duplicate accounts? trigger AccountDuplicateTrigger on Account (before insert,before update) { List<Account> ...

1
2