Book Image

Learning Apex Programming

5 (1)
Book Image

Learning Apex Programming

5 (1)

Overview of this book

Table of Contents (17 chapters)
Learning Apex Programming
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Visualforce limits


Visualforce is the markup language of the Salesforce1 Platform. The logic and data for the custom pages you create using Visualforce are controlled by Apex classes. Salesforce.com includes page load times of your custom pages in their overall performance metrics. So, as you might have guessed, the Apex code used by your custom pages must adhere to the same governor limits as all other Apex code.

In addition to the Apex limits, Visualforce has a few other limits too. When you interact with a Visualforce page, the Salesforce1 Platform keeps track of the state of everything on the page. When you fill in the FirstName field, it keeps track of that value. If the page displays a list of data, it keeps track of that list.

All little things that are being tracked are part of what is called the page's view state. In order to ensure that the page can load quickly, there is a limit on how much information can be stored in a page's view state. That limit has been 135 KB for quite some...