Switch To PostgreSQL In Rails And Nested N+1 Query Fixes | Ruby On Rails For Beginners Part 10



Switch To PostgreSQL In Rails And Nested N+1 Query Fixes | Ruby On Rails For Beginners Part 10

Switch To PostgreSQL In Rails And Nested N+1 Query Fixes | Ruby On Rails For Beginners Part 10

This video covers setting up Postgresql on your Linux machine, changing from SQLite to Postgresql for the Rails 7 Blog application, and setting up the database.

It then covers improving the performance of the db:seed operation by calling a recursive activerecord-import command.

Finally, we look at fixes for the noticed gem’s notifications.
DigitalOcean Blog: https://www.digitalocean.com/community/tutorials/how-to-install-postgresql-on-ubuntu-20-04-quickstart
GoRails post: https://gorails.com/episodes/rails-6-db-system-change-command
Source:
Source: https://github.com/Deanout/blog_application/

Join this channel to help support these videos:
https://www.youtube.com/channel/UCRQv-3VvPT9mArF5RfrlpKQ/join

Follow me on social media:
https://linktr.ee/deanin

Join this channel to get access to perks:
https://www.youtube.com/channel/UCRQv-3VvPT9mArF5RfrlpKQ/join

If you liked this video, please consider subscribing: https://t.co/RZ4EwP0F2a

Timestamps
0:00 Install Postgres and Set It Up On Linux
5:08 Switch Rails 7 Application To Postgresql
9:53 Performance Refactor For DB Seed Recursive ActiveRecord-Imports
14:48 Noticed Gem Postgres Fixes
17:00 Fixing Notifications From Self Showing Up
18:18 Fixing Admin Nested N+1 Child Queries (Previous Homework)

#Deanin #Software #Programming

Comments are closed.