Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displaying Long Lists of Spec_Items #37

Open
pasetti opened this issue Jun 4, 2021 · 1 comment
Open

Displaying Long Lists of Spec_Items #37

pasetti opened this issue Jun 4, 2021 · 1 comment

Comments

@pasetti
Copy link
Contributor

pasetti commented Jun 4, 2021

Suppose that the user makes a request to display all items of a certain category and that the number of such items is very large (e.g. thousands of items). The back-end retrieves all items and converts them to display format. This could take very long and be unnecessary because the number of items actually displayed at any given time is very limited.

What can we do to make this process more efficient?

@pasetti
Copy link
Contributor Author

pasetti commented Jun 5, 2021

One potential solution to this issue is the "infinite scroll" discussed here:

https://simpleisbetterthancomplex.com/tutorial/2017/03/13/how-to-create-infinite-scroll-with-django.html

Alternatively, I could break up the long list of items into pages which are called up and shown one-by-one. This is discussed here:

https://simpleisbetterthancomplex.com/tutorial/2016/08/03/how-to-paginate-with-django.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant