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

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - How to Hide Date Menu from Datepicker in yii2 -