The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
41 views

Performance issue when deleting Opportunity Line Items

I'm writing APEX REST API that creates OpportunityLineItem, Product2, Quote objects, updates Opportunity etc. based on data in JSON format received from external system. During testing I experienced ...
0
votes
0answers
20 views

VF page loads faster in developer org and takes too much time in sandbox

I have a VF page which loads in 3-4 seconds in most of the orgs while it takes 20-25 seconds on one of my client's sandbox org. What can be the reason behind it. Can the sandbox org of client be slow ...
1
vote
0answers
15 views

Migration tool took more than the expected time to finish the deployment

Validations and deployments via migration tool to a sandbox took more than the expected time to finish the deployment. Total deployment/validation time supposed to be roughly 30 minutes and suddenly ...
0
votes
1answer
35 views

Improving Visualforce Performance

We have noticed that the initial load has a long delay but subsequent page loads are much faster. Is this some caching that is being done by salesforce internally or inside the ORg. How long is the ...
1
vote
0answers
34 views

Large delay between FLOW_BULK_ELEMENT_BEGIN flow element and FLOW_CREATE_INTERVIEW_BEGIN

We have a flow, and have noticed it has greatly increased the time it takes for a bulk (200 record) transaction to complete. We've narrowed down the delay to a 78 second delay between ...
0
votes
1answer
25 views

Query Optimisation

I currently have a function which looks like this: public void getContacts() { try { contacts = Database.query(query + ' LIMIT 15'); } catch (Exception e) { ApexPages.addMessage(new ...
1
vote
0answers
31 views

Large time gap in debug log before ENTERING_MANAGED_PKG

When viewing a debug log where the logging level was set to: APEX_CODE,FINEST;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WORKFLOW,INFO I am seeing a ...
2
votes
1answer
34 views

Strange, slow behavior during ordering w/ REST API

I'm seeing some very bizarre SOQL performance when ordering by Id across several Sobjects. In this, they seem to take a very long time to select even just Ids when asked to sort by Id. Remove the ...
4
votes
2answers
45 views

Is “System.QueryException: non-selective query” Only Thrown From Triggers

Is it true that "System.QueryException: non-selective query" is only ever thrown from a trigger? If so, where is this documented and what happens when an identical query (one that throws ...
2
votes
1answer
38 views

I want to improve Salesforce1 Mobile performance

I am having problems with the performance on Salesforce1 Mobile specifically the loading times of visualforce pages, I have tested those visualforce pages independently using the developer console and ...
4
votes
2answers
73 views

Batch Apex and performance

I have a batch class that converts thousands of Visualforce pages to PDFs and stores the PDF files into a folder (in documents). The batch seems to work fine, but the process will take hours to ...
1
vote
1answer
35 views

Comparing Strings vs. Boolean Speed

We're looking to track where certain records were created (e.g. from a User within Salesforce, from our website etc...). We're wondering what is the best and least CPU intensive way of querying these ...
7
votes
1answer
181 views

Expense of using System.debug

I've seen code on an inherited project output debug info while iterating large collections of objects. System.debug(Logginglevel.DEBUG, 'sQuery=' + sQuery); If the system logging level is set ...
2
votes
0answers
45 views

What is selectivity threshold?

In the example mentioned here(Force.com Query Optimizer) What happens for the below scenario: Total number of Records in Account table : 2,500,000 And all the records are created on Jan 1st 2015. ...
5
votes
1answer
144 views

Best practice to monitor Apex function execution time/performance?

We have been running on Salesforce platform for just over 6 months with considerate amount of customizations. The data volume has been growing and features have been added into existing codebase ...
1
vote
2answers
44 views

Possible to include different js files depending on the environment?

What's the best practice of including javascritps in salesforce? I want to minified and concat all js files used in our app. When we are developing we want to use js files as separte files but on ...
1
vote
1answer
27 views

Eclipse Save-to-Server Performance since Summer 15

We've been experiencing significant Save to Server issues from Eclipse. We filed a case, and Tier 3 made a change to our platform schema, but the problems continue. Is anyone else seeing severely ...
3
votes
1answer
176 views

What is the Function of aura:dependency?

I came across something that vastly improved the performance of the Lightning application that I am building. However, I am not sure exactly why. When my application initializes, I am calling a doInit ...
4
votes
1answer
65 views

Formulas in workflows & validation - lazy or eager evaluated?

I tried to run some tests in developer edition and didn't see great difference so I am not sure. Basically I have a case that CPU time is leaking somewhere and I suspect it's validation rules or ...
26
votes
2answers
202 views

Which kind of issues will be shown at trust.salesforce.com and which issues will be omited?

In the context of a different question, we encountered a deployment performance degradation on EU5 of between 6000% to 10000% using Metadata-API. This means that work (saving a single APEX file to the ...
5
votes
1answer
108 views

Syntactic vs Performance difference on object creation?

Is there any performance difference between: Contact con = new Contact(); con.Id = conId; con.AccountRoles__c = newRole; ... and... Contact con = new Contact( Id = conId, ...
4
votes
2answers
166 views

EU5 not usable for development: Metadata-API deployment on EU5 unresponsive

Today I encounter a severe performance degradation on Metadata-API deployment speed on EU5. I'm waiting > 950 seconds (sometimes > 1500 seconds), when it usually deploys in < 25 seconds... This is ...
1
vote
1answer
48 views

What are “tid” and “len” in Visual Force Remoting actions?

I have no knowledge of the SalesForce1 platform, but am required to performance test a few UI pages/endpoints of a customer applications using a JMeter script. SO far I have been able to invoke most ...
10
votes
3answers
236 views

Metadata+ToolingAPI access on CS14 (and other pods) extremly slow & No Support?

We are working on CS14. Starting last Friday we are suffering form a extreme performance loss on CS14. Loading and Saving Metadata via Tooling/Metadata-API is very slow. Operations which usually ...
11
votes
3answers
643 views

Are sandboxes slower than production Orgs?

I've noticed quite often that sandbox instances are showing a slower performance during Metadata API and Tooling API access. Today this happened on cs14. The force.com IDE froze completely during a ...
11
votes
4answers
5k views

Efficiency of List.size() > 0 vs. !List.isEmpty()

Anyone have any data to support a claim for which of the following two expressions is more efficient (meaning faster)? The use case is determining whether a List is empty to inform an auxiliary method ...
0
votes
2answers
81 views

Need help in improving SOQL performance

I have a SOQL query as below (where clause only). This query is not performing upto the mark, may be because of like operator. How can I substitute this :- Where ( abc__c = 'chris' OR xyz__c = ...
0
votes
1answer
58 views

Why is my report taking forever to run?

When working with a very large dataset of Accounts, e.g., 10's of millions of records, I wanted to create a report to return a subsets of records, i.e., records filtered by country. I created a ...
2
votes
2answers
392 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 ...
5
votes
2answers
1k views

SFDC European Data Center experiences

I see a new EU5 instance on trust.salesforce.com which has a 'LON' hovertext over it, assumingly referring to London. I can imagine some companies might be interested in having their data hosted in ...
2
votes
1answer
50 views

No response to compile request in MavensMate this morning

This morning when compiling classes to server in one of my sandboxes, the files are "spinning" forever in MM's status window. But if I open the classes list in the browser, I can see that the ...
6
votes
2answers
165 views

Best practises for speeding up Apex Batch class

My previous question about slow Batches probably was to focused on a specific problem, so I try it again much broader. What are general rules of thumb to make a slow Batch faster? Although I added 2 ...
6
votes
2answers
443 views

Only query Id field in start() to speed up Apex Batch

I am looking for ways to speed up a complex Batch job which takes days to run in a specific customer org. This Batch is snapshoting records of arbitrary objects into denormalized (as a single records ...
3
votes
1answer
165 views

Reports API - Slow Down

Team, I wrote the below class on Thursday and it was working like a dream (1 - 2 seconds to load the page). Now, on Saturday when there have been no changes to the code since Thursday it take 15 - ...
2
votes
3answers
67 views

Do big classes reduce performance?

I have a big (right now it's 1,4k lines) 'toolbox' class. I have a lot of static methods and wrappers there which are used in various number of services or manager/handler classes. Does anyone notice ...
1
vote
0answers
36 views

reduced latency and improved transaction speed since new data centre opens

I wonder if there is a direct reduction in transaction time for EU based customers as a result of the new data centre that opened in the UK last week (w/c 27th Oct '14), we have noticed a reduction in ...
2
votes
1answer
108 views

Performance impact of relationship queries in batch start

For a new batch process I have a choice between immediately selecting relevant records in the start function (but using several [field]__r comparisons as they are junction objects being queried) or ...
0
votes
0answers
116 views

Can you please advise on REST API best practices in terms of batching the amount of rows per call, when adding to a data extension?

Can you please advise on REST API best practices in terms of batching the amount of rows per call, when adding to a data extension? One of our clients tried inserting data in batches of 50 records as ...
3
votes
2answers
114 views

What is the importance of Heap size limit?

I don't understand the importance of heap size limit of 6MB. So could someone help me understand the heap size limit?
2
votes
0answers
66 views

Having a Visualforce page inside of a standard page results in duplicate main.js

I have a custom Visualforce page rendered inside of a standard page Opportunity in one of my layouts. I was researching some performance issues when I noticed that 2 main.js files are travelling down ...
3
votes
2answers
190 views

Any reason not to monitor ALL event types (operations) in triggers

Is there any drawback on having defined all possible Trigger events / operation before x, after x, before y, after y in the header of a trigger even if I don't use them in my code? As most decent ...
0
votes
1answer
171 views

Check if the value was changed in the original object in a trigger

I'm writing a rollup trigger to update a field at account level based on some criteria. Let's say there's a boolean field with true/ false values. Should I check if the value has changed at original ...
1
vote
1answer
39 views

Performance Test SF on IPad

i need your help and support on an important topic. We have build on SF a new sales solution which will go live within the next months. Every morning I have a data synchronisation on the IPad. So data ...
3
votes
0answers
212 views

How to load Chatter by Javascript

Question How could I load chatter (chatter:feedWithFollowers) dynamically (by javascript) in the browser? Motivation I'm working in a visualforce page that has the requirement of load as faster as ...
3
votes
1answer
52 views

VF Performance Issue

Salesforce recently notified us that "a VF is consuming high levels of DB resources due to inefficient SOQL in your VF controller." I believe I have identified the issue down to this query: ...
3
votes
1answer
84 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 ...
4
votes
2answers
339 views

Concurrent HTTP callouts vs single callout

Background I have 3 identical HTTP servers, holding the same data: api1, api2 and api3. I want to query this data as reliable and quick as possible. In Java, I would have done this by spawning 3 ...
2
votes
1answer
221 views

renderAs CSV (10K+ rows): What are the best practices available to avoid hitting Apex cpu time limit exceeded limits?

I am trying to download a CSV using render as attribute in apex:page. The output data that is rendered is the real-time response from a callout from salesforce to SAP webservice. The number of records ...
4
votes
2answers
947 views

Performance difference between Sandbox and Production instances?

I am seeing little bit difference in the page response time in sandbox and production org's. Actually, i am thinking the production org instance is faster than the sandbox instance because it might be ...
2
votes
1answer
385 views

What is the use of calling a controller inside an APEX trigger? Is that a best practice?

I saw some posts related to APEX triggers and recently one below, Salesforce method to update doesn't get commited in which the trigger have few lines, ApexPAges.StandardController sc = new ...