Mann you good! I came across yo channel yesterday forI was searching for hkw to use redis. I'm new to Django - 2 years thou 😅.. I really wish I can meet you to ask some questions. Btw, nice content❣️
I installed the django redis and the sad thing is that it does not work in production as it still renders an error saying localhost:6379 refused i have tried even hardcoding the managed redis but nothing works. CACHES PROBLEM
Am I missing something obvious here? Looking at those stats in the debug toolbar, the queries to the cache appeared to take LONGER than the sql queries.
I saw that too. But that is probably because there is only 2 user in the database. If we had like 10,000 users, then it would be the query that takes more time.
For api with DRF booking system what will be the ideal time to live time? Some of the joins are pretty complicated so api response time for some api is more than 5 seconds.
Thanks for the video. One thing I didn't understand is, is cached response returns every time? I mean, if the data in database changes in the 15mins is the cached() view stays at old data? Another question: if a set DEBUG=False does it remove the debug bar at the right side?
It is used for stuff that doesnt change that often, and for your second question I think debug toolbar only shows for ips mentioned in the settings at the start
For the second question, you should have something like if DEBUG: # Add Django Debug Toolbar settings for development environment INSTALLED_APPS += ['debug_toolbar']
Simple, clear and concise. Keep it up.
Straight to the point and very solid knowledge! Thanks for the content!
Thank you kind sir 🙏🙏 not many focus on the Redis part
django road the best django tutorials on youtube
A very concise yet informative explanation. Thank you very much.
Hi, thanks for this concise and clear guide... it really helped me improve the performance of my app.
thank you, you have explained exactly what I needed
Very good, thanks 🙏🏻
If clarity was a person. subscribed ✌
😂
Thank you, this video is very great.
Mann you good! I came across yo channel yesterday forI was searching for hkw to use redis. I'm new to Django - 2 years thou 😅.. I really wish I can meet you to ask some questions. Btw, nice content❣️
You nailed it. Keep it up 👍.
Good job in explaining this. Thank you.
You are the best, thank you!
I installed the django redis and the sad thing is that it does not work in production as it still renders an error saying localhost:6379 refused i have tried even hardcoding the managed redis but nothing works. CACHES PROBLEM
This is extremely useful thank you
That was awesome
Awesome! Thank you so much!
Awesome video!!
Am I missing something obvious here? Looking at those stats in the debug toolbar, the queries to the cache appeared to take LONGER than the sql queries.
I saw that too. But that is probably because there is only 2 user in the database. If we had like 10,000 users, then it would be the query that takes more time.
This is a treasure 🤑
Well explained, thanks
Awesome🤩
For api with DRF booking system what will be the ideal time to live time? Some of the joins are pretty complicated so api response time for some api is more than 5 seconds.
thanks...great explanation
Quality content thank you.
Thanks for the video. One thing I didn't understand is, is cached response returns every time? I mean, if the data in database changes in the 15mins is the cached() view stays at old data? Another question: if a set DEBUG=False does it remove the debug bar at the right side?
It is used for stuff that doesnt change that often, and for your second question I think debug toolbar only shows for ips mentioned in the settings at the start
For the second question, you should have something like
if DEBUG:
# Add Django Debug Toolbar settings for development environment
INSTALLED_APPS += ['debug_toolbar']
Does it work when calls to the DB points to Functions? I am using PostgreSQL
Thank you
nice one
thankyou
can i use that feature in class base view?
I believe you can
You should use f-strings instead of .format()
yeah I still use old style, should upgrade!
is this a girl or a boy ?
dude, man up
Thank you
thanks