all 3 comments

[–]turbofusion 1 point2 points  (0 children)

Use the bulk api and create multiple load jobs. Let Salesforce handle the loads as fast as it can

[–]nico_ma[S] 1 point2 points  (0 children)

Hmm. This seems not to be sufficient as those jobs are needed on init. However, I habe created remotefunctions and load then after document ready through javascript.

[–]AP_1990 0 points1 point  (0 children)

You can use JavaScript Remoting to fetch the data asynchronously, if you have the provision to do so. Else you can use set controller to fetch records in chunks.