New answers tagged

0

SOLID is something that tends to happen when you write good code, but good code is not necessarily something that happens when you implement SOLID. In other words, SOLID is a description of what good code looks like, not a prescription for getting good code in the first place. I can, for example, write very SOLID code that will crash in any Salesforce org ...


4

Both of the answers currently posted are incorrect. There is no limit on the records selected by the antijoin subquery. From the SOQL and SOSL Reference: There’s no limit on the number of records matched in a subquery [note, specifically referring to a semijoin or antijoin]. Standard SOQL query limits apply to the main query. So this query incurs the ...


0

The limit is 50k records (except for read only attribute). Only the records fetched the main query have the limit of 50K records. If you exceed this limit you will get a LimitException. In a SOQL query with parent-child relationship subqueries, each parent-child relationship counts as an extra query. These types of queries have a limit of three times the ...


0

This are the limits: https://developer.salesforce.com/docs/atlas.en-us.salesforce_app_limits_cheatsheet.meta/salesforce_app_limits_cheatsheet/salesforce_app_limits_platform_apexgov.htm I don't know anything about 20k, but as per the official documentation you can retrieve 50.000 record with an SOQL query


3

You can't. It's not possible to share variable access across transaction boundaries. Database.Stateful allows you to preserve state from one batch invocation into the next, but it doesn't allow live, bidirectional access. In fact, any asynchronous Apex you enqueue from a synchronous context cannot even begin executing until the synchronous transaction ...


6

First, is the information in the post above considered a safe/acceptable method for freeing up heap? I'd hope so. I've used this for a very long time. If I need to pass a list to another method for execution, but after I pass the list I don't need it anymore, I can freely clear it and that will give me back usable heap space? Yes. The post above says the ...


1

Yes, governor limits apply to declarative tools: Per-Transaction Flow Limits Autolaunched flows are part of the larger transaction that they were launched through and share that transaction’s limits. For example, flows launched from Apex or a process are executed with the Apex or process actions as part of the larger transaction. Flows with Screen elements ...


Top 50 recent answers are included