Tell me something about Apex Governor Limits?

devquora
devquora

Posted On: Feb 22, 2018

 

 
Visualforce pages that usually contain a form part additionally include the hidden form field and encrypted field that exemplifies the page’s view state. This view state is consequently created, and as the name recommends, it holds the page state – the state that incorporates the parts, field values, and the controller state.

Best Practices to lessen the view state size

  1. Minimize the number of forms on the page. Utilize apex:actionRegion as opposed to utilizing at least two forms.
  2. Refine your SOQL just to retrieve the information required by the page.
  3. All private and public data members in the Custom, Standard, and Controller extensions are saved.
  4. Mark any of the Apex variables that is not important to the view state as Transient. (The transient variables are not merely passed to see state and consequently not put away in View State)
  5. Create wizards with as few pages as could be expected under the circumstances
  6. Use outputLink parts rather than commandLink or commandButton segments where conceivable as they don’t should be settled in shape.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Visualforce Interview Questions

    Tell us something about Visualforce Page.

     Visualforce is new markup language which is introduced by Salesforce, and by using this language, we can even render t..

    Visualforce Interview Questions

    Is it generally important to know Apex to make Visualforce pages? At the point when does it end up important?

     No, it isn’t generally fundamental. You can utilize standard controllers and VF part labels to achieve a considerabl..

    Visualforce Interview Questions

    What is AJAX ordinarily used for in Visualforce?

    AJAX is principally used for the partial page updates in the Visualforce. In s-controls, AJAX toolbox was a soap custo..