Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Apex Design Patterns

You're reading from   Apex Design Patterns Harness the power of Apex design patterns to build robust and scalable code architectures on the Force.com platform

Arrow left icon
Product type Paperback
Published in Apr 2016
Publisher
ISBN-13 9781782173656
Length 256 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Jitendra Zaa Jitendra Zaa
Author Profile Icon Jitendra Zaa
Jitendra Zaa
Anshul Verma Anshul Verma
Author Profile Icon Anshul Verma
Anshul Verma
Arrow right icon
View More author details
Toc

Over usage of formula fields


Often, Salesforce configuration options are suggested as the first option or solution to any given problem. For example, the formula field. Formula fields are fast and easy ways to show calculated field values driven from the same or related objects (parents or grandparents). Formulas are easy to create and manage and are very handy when values are to be shown dynamically.

However, we should understand how a formula field really works under the hood. Formula fields are calculated fields (values are not physically stored), which are calculated every time a record is retrieved. The formula field value gets calculated only if it is a part of the retrieval process. This means that an additional calculation is to be performed for each object record that is retrieved. Now, this will not impact when you are merely looking at the record in view mode or are retrieving a limited number of records. But when you retrieve bulk records via code or reports, the use of more and...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime