The optimisation tag has no wiki summary.
1
vote
3answers
65 views
Optimized way to update parent object
What is the most optimized way to update every parent object inside a list?
For example:
List<Asset> aList =
[
SELECT
Account.Name
FROM
Asset
WHERE
...
3
votes
1answer
54 views
Bi-directional Map in Apex or best alternative approach
I am using Apex Map structures for fast one-way mapping of data. This works very well, but I ideally want to map backwards using the same map declaration.
The obvious way is to iterate the map, but ...
5
votes
2answers
135 views
Better performance between if-else-else-… vs hardcoded maps
We're doing an integration project where we receive a lot of code values from a webservice.These codes need to be mapped to a user-friendly, translateable text in a visualforce page. We've set up a ...
4
votes
3answers
504 views
String concat vs string format in Apex?
I believe there is a performance benefit for using string format in languages like .NET and Java over concatenating strings. Is this also the case for Apex and force.com ?
string s = ...