I knew I'd something meaningful in your channel about Authorization! Will try Pundit 'cause I want to avoid the cancancan gem if possible after seeing how long it takes to make it work.
Thanks, Keen. Your tutorials are always incredibly helpful! Could you make a video on optimizing SQL queries for better performance? When working with big data, it's common to encounter situations where code runs fine locally but isn't fast enough in production. I've managed to improve performance by adding indexes and using memoization. I'm confident your tutorial would greatly benefit many Rails developers.
I would probably need an example to work from - would be quite hard to reproduce something locally. It sounds like you are on the right path though, indexes are a great way to get extra performance. You would want to be careful with memoization to avoid stale data but if you are just doing it during the request cycle you should be ok.
This is great. Love to see more rails tutorials. Thanks Ken🙏🙏🙏
I knew I'd something meaningful in your channel about Authorization! Will try Pundit 'cause I want to avoid the cancancan gem if possible after seeing how long it takes to make it work.
I swapped from CanCan when it was deprecated and never looked back! Pundit is great
Thanks, Keen. Your tutorials are always incredibly helpful! Could you make a video on optimizing SQL queries for better performance? When working with big data, it's common to encounter situations where code runs fine locally but isn't fast enough in production. I've managed to improve performance by adding indexes and using memoization. I'm confident your tutorial would greatly benefit many Rails developers.
I would probably need an example to work from - would be quite hard to reproduce something locally. It sounds like you are on the right path though, indexes are a great way to get extra performance. You would want to be careful with memoization to avoid stale data but if you are just doing it during the request cycle you should be ok.