How to over come heap size error while creating SKUID page???

  • 1
  • Problem
  • Updated 4 years ago
  • Solved
  • (Edited)
Hi All,

We got heap size error while creating page,Here we need to work with 61 Models and 12 record type based on that record type we need to render appropriate field editor and tab sets.

below screen shows our page "Pagebuilder".



we are following the suggestion given by Zach (https://community.skuidify.com/skuid/topics/skuid_error_apex_heap_size_too_large_9436523)
 
we are loaded only necessary models and fields.

please follow the screen shorts

S1:


S2:
Photo of Shaik

Shaik

  • 370 Points 250 badge 2x thumb

Posted 4 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Well,  61 models and 12 record types.  I'd expect heap size issues with that sort of volume. 

We'd reccomend breaking up your page (for better UX as well as better performance).  
- Use mutliple pages.
- Use multiple tabs, and use page includes to source the contents of the tab in a "lazy load" manner - so the data is only shown when needed by the user.  
- If you are conditionally rendering portions of the page - rework your page so that the data for the sections you intend to conditionally rendered is not queried on page load, but only when the action is taken that shows that section (Model action seqences that take effect on row update).

 
Photo of Shaik

Shaik

  • 370 Points 250 badge 2x thumb
Hi Rob,

Thanks for your replay, We did it as you recommend thanks :)