we have implemented a visualforce page that displays 500 records along with images and map it is loading properly in sandbox but in production it is loading very slow.please see my page screenshot below.enter image description here

Can anyone help me, how to resolve these loading issue.

  • are you displaying 500 records all together? – Himanshu May 21 '16 at 7:05
  • yes we are displaying max of 500 records using pagination – ncmouli May 21 '16 at 7:08
  • Have you checked your view state size? Post your controller and vf page code – Himanshu May 21 '16 at 7:11
  • I guess you are using jquery plugin or something for pagination ? – Ratan Paul May 21 '16 at 7:15
  • Hi Himanshu, actually my problem is page loading issue in production not in sandbox,if there is an issue with view state or code means load issue should occur in both sandbox and prod also(stage is loading and displaying data fine) are you getting my problem – ncmouli May 21 '16 at 7:16

Performance problems are best tackled by first gathering evidence and then using that evidence to identify the root cause and so hopefully the fix.

There are 3 tools I suggest you use and in this order:

  • the Network tab of your browsers Developer Tools that presents how long it takes each piece of information to arrive in the browser and the sequence they arrive
  • the Developer Console's timeline feature that organises the server debug log timestamps into overview tables and shows the breakout between the database, Apex controller code and Visualforce
  • the Developer Console's query plan tool that lets you check how the queries are being executed on the server

Start by running the tools in production and run them in the sandbox as needed to identify the differences.

Not the answer you're looking for? Browse other questions tagged or ask your own question.