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

fix: optimize advertisement and category queries. #33

Merged
merged 1 commit into from
Jul 29, 2023

Conversation

Mojtaba-saf
Copy link
Contributor

added select_related and prefetch_related to advertisement, category and advertisement images to reduce number of queries performed.

@Mojtaba-saf
Copy link
Contributor Author

related to this issue

@PEMIDI
Copy link
Member

PEMIDI commented Jun 17, 2023

@Mojtaba-saf
Thank you so much, Mojtaba. Your PR will be reviewed soon by me or @MrMohammadY or @EngRobot33 !

@PEMIDI PEMIDI merged commit 466ab10 into jamedadi:master Jul 29, 2023
@PEMIDI
Copy link
Member

PEMIDI commented Jul 29, 2023

@Mojtaba-saf
Merged. Thank you.

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

Successfully merging this pull request may close these issues.

4 participants