Posted about 4 years ago. Visible to the public.
- Understand why we use pagination
- Understand some pros and cons of replacing pagination with "infinite scrolling"
- Create 7500 movies in MovieDB (hint: Doing it in a single transaction is much faster). Load the movies index and measure how long it renders.
- Use the
will_paginategem to add pagination to MovieDB's list of movies. How long does the movies index render now?
tail -f log/development.logand see which queries
will_paginategenerates. What do they do?