Questions tagged [performance]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
1answer
1k 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 ...
2
votes
1answer
130 views

What are the performance implications or other drawbacks of Dynamic VF Bindings?

I have an abstract class and a couple of descendants of that class. When I do an apex:repeat over a list of instances of the abstract class I can't access anything defined solely in the child classes ...
10
votes
1answer
629 views

How can cache times be controlled in Site.com?

According to the Site.com informational page Site.com leverages a global network of caching servers that deliver content with fewer server hops How can I (or can I at all) set cache times for ...
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 ...
6
votes
7answers
6k views

Deployment with Force.com IDE Taking Forever

We're experiencing extremely long deployment times even when deploying single classes using the force.com IDE plugin to eclipse. The deployment takes up to 1 hour yet running all unit tests from the ...
6
votes
1answer
7k views

How can I profile the performance of Salesforce queries?

In my last question ( Implementing a Keyword Search ) , I described some of the complex queries I've been working on in a new app. In determining my approach, I'd like to consider the performance and ...
6
votes
2answers
1k 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 ...
5
votes
1answer
1k views

Efficient SOQL query using IN binding with JAVA

With APEX if you have a list of Ids like: List<Id> customObjList You can do one efficient SOQL query using the IN keyword. SELECT ID,NAME from SObject WHERE Id IN :customObjList I have to do ...
6
votes
1answer
865 views

Site sometimes incredibly slow - Apex code execution sleeps for several seconds - any chance to fix?

We sometimes experience a very slow response of a Sites page. Usually the page renders in less than a second but sometimes it takes 8 or more seconds. When digging into the debug logs I recognized ...
18
votes
2answers
2k views

How to efficiently profile Visualforce components and their controllers?

I have a quite complex Visualforce component (edit grid) that is running to slow (2-4 seconds to display) When I say complex I mean: The Component itself is calling other components Many thousand ...
15
votes
3answers
15k 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 = 'this'+'is'+'a'+...
12
votes
1answer
2k views

Has anyone had issues with initial page load times when injecting a second VF page via AJAX?

I have a few visualforce pages that, together, make up a custom dashboard. The first page or "shell" page is just a HTML form that lets you select a client services rep and an optional client type ...
11
votes
1answer
366 views

Best way to measure SFDC system performance as perceived by the end-users

In order to do proper performance optimization, and hunt the true bottlenecks, we need to know the current performance situation as perceived by the end-users. I.e. as a minimum the duration from the ...
38
votes
2answers
733 views

Similar queries: Better to query twice or process via Apex?

I'm building a Visualforce page in which I want to display two similar (almost identical) lists of the same sObject -- one for objects with an Open status and one for Closed objects. I can think of ...
2
votes
2answers
420 views

Performance of sites and Authenticated Website User Type

I have to develop a "private" auction site based on data already stored in Force.com platform. Develop a site with Authenticated Website User Type is a viable way? I'm worried about perfomance and ...
4
votes
3answers
314 views

When should I start worring about the number of Records on a single object in a SF Org?

Just completing a project that has been deployed into a global SF Org. We have one object in particular that is likely to require a large number of records and is a related list on most pages. At ...
22
votes
2answers
8k views

What are the implications of implementing Database.Stateful?

I've recently implemented a batch apex class that initially did not implement Database.Stateful. After using it for a while as-is I decided to implemente better error handling via a simple Map to ...
4
votes
3answers
361 views

Overcoming Database.com latency

I am working on a rather complex application hosted on Heroku and pulling data from Database.com. Because of the way SOQL works, I usually make a number of calls where I would traditionally have made ...

1
3 4 5 6
7