ruby - Rails performance loading entire table -


i have table has thousands of entries. putting each entry "datatable" shown here: http://learning.aws.ipv4.ro/html/essential-tables.html

basically when page loads controller saying @query = table.all can each entry. okay? should concerned performance issues when table large?

yes, should concerned loading data @ once.

for situations makes sense (probably most), consider adding pagination. kaminari gem favorite such purposes.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -