Загрузка...

PostgreSQL Views & Stored Procedures – Practical Guide

00:00 Introduction
00:23 What is a View?
05:38 Materialized View
07:08 View (Hands On)
20:40 What is a Stored Procedure?
24:02 View vs Stored Procedure
25:56 Stored Procedure (Hands On)
42:48 Outro

🔗 https://github.com/yunusgrgz1/view-stored-procedure-youtube-project

In this video, I walk you through two of the most powerful and essential tools in PostgreSQL — Views and Stored Procedures. We cover not just what they are, but why they matter and how to use them effectively through practical, real-world examples.
What I cover in this video:
Views:

What a view is and why it is indispensable
Using views as an abstraction layer to protect your dashboards and workflows from breaking when underlying tables change
Managing access control through views instead of exposing base tables directly
Granting different access levels to different teams using views
Materialized views — how they differ from regular views, when to use them, and how to refresh them

Stored Procedures:

What stored procedures are and how they differ from views
Writing your first stored procedure with IN and OUT parameters
Encapsulating complex business logic inside the database
Performance benefits — execution plan caching and reuse
Managing access control through stored procedures instead of base tables
Transaction management — wrapping multiple operations into a single block so that either everything succeeds or everything rolls back automatically

All SQL commands used throughout this video are available in the GitHub repository. You can set up the exact same database I use by running the SQL script included in the repo.
#PostgreSQL #SQL #Database #Views #StoredProcedures #DataEngineering #Backend #DatabaseDesign #SQLTutorial #LearnSQL #Programming #SoftwareDevelopment #DBDesign #QueryOptimization #TransactionManagement

Видео PostgreSQL Views & Stored Procedures – Practical Guide канала Yunus GÜRGÜZ
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять