Join Sara Morgan for an in-depth discussion in this video Considering using the transient keyword, part of Visualforce: Improving Performance.
- Previously, I had you look at a page…called list "Opportunities".…And since that page did not accept any user input,…it was more efficient to have removed the form tag…and not have view state all together.…But what if you do need to use that form tag…because you are accepting user input,…such as in the case of a search page?…Well, to demonstrate that, let's go ahead…and open up "Developer Console" and look at the code…for a page called "AccountSearch".…And what this page does is it does include a form tag,…and the reason why is because we are accepting input.…
And that is happening down on the line of code…in the "pageBlockButtons" section…that accepts the "inputText".…And we're taking in a value of a search string…and we have a button there…to click an action called "search".…And that action is being performed in the controller.…In our case, we have a controller file called…"AccountSearchController".…And if I flip over to the code for that,…you'll see there's a routine,…an action method called "search()".…And in that action method, we are performing some Sequel.…
- Reducing and eliminating view states
- Evaluating SOQL for efficiency
- Using Workbench and the Query Plan tool to evaluate queries
- Reducing use of action tags through Visualforce remoting
- Working with the StandardSetController class
- Using static resources
Skill Level Intermediate
1. Getting Started
2. Reducing or Eliminating View State
3. Evaluating Queries for Efficiency
Limiting data returned10m 8s
4. Reducing Use of Action Tags
5. Taking Advantage of StandardSetControllers
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.