how to handle large dataset like sproutcore

Posted by Nik on Stack Overflow See other posts from Stack Overflow or by Nik
Published on 2010-06-14T08:03:17Z Indexed on 2010/06/14 11:02 UTC
Read the original article Hit count: 185

Filed under:
|

Hello all, I really don't have any substantial code to show here, actually, that's kinda why I am writing: I looked at the SproutCore demo, especially the Collection demo, on http://demo.sproutcore.com/sample_controls/, and am amazed by its loading 200,000 records to the page so easily. I tried using Rails to provide 200,000 records and in a completely blank HTML page with <% @projects.each do |p| %> <%= p.title %> <% end %> that freezes the browser for seconds on my m1530 laptop with 4gb ram and t7700 256gb ssd.

Yet the sproutcore demo does not freeze and takes less than 3 seconds to load.

What do you think the one technique they are using to enable this is?

Thanks!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about ruby-on-rails