Python Django ORM - Towards SQL Optimization - Django Debug Toobar Package

preview_player
Показать описание
Thinking more serious about Python Django means understanding a little more about the performance of our django application. As you might imagine there are many tools and methods to measure performance. Moving into that direction the django-debug-toolbar give us provide some useful information to help us start thinking about database/SQL optimizations.

Django as a powerful framework makes it easy to interact with database - allows you to directly map your object-oriented models to database table structures and in doing so also builds the data and table relationships.

This level of abstraction the ORM provides (although it does a great job) it can cloud our understanding the performance of our application. And as better performance can convert to lower running costs – its an important aspect of our development we need to know more about.

Starting your journey to database optimization, we need to understand what is happening behind the scenes or more importantly monitor SQL performance. If you have seen the other tutorials in this series we already know that we can collect information about SQL queries that be being executed. In this tutorial, although there are many various ways to log SQL queries, here we take a look at the package django-debug-toolbar – which as you will see provides more than just SQL information. Overall, it provides us some great insights into our application.

✨ Support us - join us as a very academy member

👍SUBSCRIBE to get more free tutorials, courses and code snippets!

👍👍Follow us on Facebook

👍👍👍Follow use on Twitter:
Рекомендации по теме
Комментарии
Автор

I recently started an intern where we primarily use Django. Your channel has been my second source of truth right after documentation.

Do you think you might be making any videos on Django-guardian sometime soon?

mma
Автор

REALLY THANKYOU, for teaching useful things. I learned a lot from you!!❤❤❤

nimasand
Автор

I bought a bootstrap theme and the toolbar does not appear where this theme. It looks like it cannot be injected into the page. What could be the reason for this?

caglargulucan
Автор

Really sir! I am learning a lot from you. Thank you so much❤️❤️

devrahul
Автор

Hello bro lots of love from nepal
I love your content so much but i want to request you something can you please make a video on making advance queries in class based view i found it confusing while making queries in cbv. Thank you in advance .sending lots of love from nepal❤❤❤

samirThapaSRT
Автор

Greate.... make videos on redies with Django

aravindaodh
Автор

At 6:30 you mention internal IPs. If we're deployed to a live server and we wanted our devs to see the toolbar but end users to not, would we add the up address of the devs' PCs?

timothymalahy
Автор

Hey sir, I did all the things which you mentioned in the video but toolbar is not displaying. Please help.

akshattrivedi
Автор

If you we are using react in front end, then how can we use debug tool bar or any alternative...

sheikhmuhammedshoaib
Автор

I think this is conflicting with Django Rest Framework library.

myyagis
Автор

how can i get full code of this video? sir.

aubdurrobanik