3,106 views
In this week's video, I show you how you can significantly improve the performance of Django applications. Typically, dozens, hundreds, or even thousands of queries are required to display a simple form. After watching this video, you will be able to significantly reduce access to the database and also reduce the time. Regis Channel: /regisdopython ???????? Want to be my friend on social media? ???????? ✅ LinkedIn: / samuel-gon%c3%a7alves-822648129 ✅ Instagram: / samuelgoncalves.tech ✅ GitHub: https://github.com/fgsamuel ✅ Twitter: / samuel_f_g To make your life easier: 0:00 Introduction 2:10 Objective of the video 3:00 Structure used for the examples 4:19 Counting the number of queries and the time 6:25 Difference between select_related and prefetch_related 7:34 Example of select_related 14:18 Example of prefetch_related 18:33 Removing fields from the query with defer 21:12 Choosing the fields from the query