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
Post a Comment