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

Optimise pagination. #191

Open
reeshabhranjan opened this issue Dec 15, 2020 · 0 comments
Open

Optimise pagination. #191

reeshabhranjan opened this issue Dec 15, 2020 · 0 comments
Assignees
Labels
backend Backend related fix code-standard Align with coding standards invalid This doesn't seem right

Comments

@reeshabhranjan
Copy link
Contributor

Currently, pagination implemented in blogs/views.py loads the whole queryset into memory and then applies pagination on it. This means the whole queryset will be loaded everytime a user demands a page (or a new page). Check if this is indeed happening, and if yes, then are there any ways to optimise this.

@reeshabhranjan reeshabhranjan added invalid This doesn't seem right backend Backend related fix code-standard Align with coding standards labels Dec 15, 2020
@reeshabhranjan reeshabhranjan self-assigned this Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend related fix code-standard Align with coding standards invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant