How Stored Procedures make databases FAST

Gaurav Sen August 31, 2023
Video Thumbnail
Gaurav Sen Logo

Gaurav Sen

@gkcs

About

This channel is for software developers who want to learn artificial intelligence, system design, and algorithms. You will find content around LLMs, data structures, algorithms, game-playing AI, and system design.

Video Description

Stored Procedures are functions which can run on a database. Here, we discuss how stored procedures work, when and why they should be used, and the potential drawbacks of this approach. We illustrate these points with a real-world example: a war story! 00:00 What are stored procedures? 00:40 Where and how do they run? 01:25 Real-world example 02:30 Request-Response Flow 03:20 First Suggestion - BiDirectional BFS 04:14 Cache results 05:30 Debugging 06:02 The Problem 07:08 Solution - Stored Procedures 08:03 Benefits of Stored Procedures 09:59 Drawbacks of Stored Procedures 12:00 Thank you! System Design Course at InterviewReady: https://interviewready.io/ You can follow me on: Github: https://github.com/InterviewReady/system-design-resources Instagram: https://www.instagram.com/interviewready_/ LinkedIn: https://www.linkedin.com/company/interview-ready/ Twitter: https://twitter.com/gkcs_ #Databases #StoredProcedures #QueryOptimization

Boost Your DB Speed Today

AI-recommended products based on this video

Loading...
Microsoft Office Home & Student 2019 | One-time purchase, 1 person | PC/Mac Keycard

Microsoft Office Home & Student 2019 | One-time purchase, 1 person | PC/Mac Keycard

(277)
$97.89
FREE delivery Jun 19 - 25
50+ bought in past month
Loading...
LEGO Speed Champions Oracle Red Bull Racing RB20 F1 Race Car Model Kits - Building Set for Adults, Ages 18+ with Realistic Features - Red Bull F1 DIY Crafts for Display - Gift Idea for F1 Fans - 77243

LEGO Speed Champions Oracle Red Bull Racing RB20 F1 Race Car Model Kits - Building Set for Adults, Ages 18+ with Realistic Features - Red Bull F1 DIY Crafts for Display - Gift Idea for F1 Fans - 77243

(353)
$29.98$29.53
FREE delivery Sat, Jun 14 on your first order
1K+ bought in past month
Loading...
NEXPOW Car Jump Starter,Car Battery Jump Starter Pack 1500A Peak Q10S for Up to 7.0L Gas and 5.5L Diesel Engine12V Auto Battery Booster,Jumper Cables,Portable Lithium Jump Box with LED Light/USB QC3.0

NEXPOW Car Jump Starter,Car Battery Jump Starter Pack 1500A Peak Q10S for Up to 7.0L Gas and 5.5L Diesel Engine12V Auto Battery Booster,Jumper Cables,Portable Lithium Jump Box with LED Light/USB QC3.0

(4,578)
$71.99
FREE delivery Sat, Jan 3
2K+ bought in past month
Loading...
Firefly Variety 8 Pack - Fire Starter Accessory for Swiss Army Victorinox Knives (Neon Green-Yellow Glow)

Firefly Variety 8 Pack - Fire Starter Accessory for Swiss Army Victorinox Knives (Neon Green-Yellow Glow)

(181)
$70.15$61.13
$5.05 delivery Thu, Jun 26Only 3 left in stock.
Loading...
9-in-1 5000A 150PSI Car Battery Booster Jump Starter with Air Compressor (All Gas/9L Diesel), Portable Car Battery Booster Pack, Safe Durable Car Jump Starter with Extended Jumper Cables, Glove, Light

9-in-1 5000A 150PSI Car Battery Booster Jump Starter with Air Compressor (All Gas/9L Diesel), Portable Car Battery Booster Pack, Safe Durable Car Jump Starter with Extended Jumper Cables, Glove, Light

(261)
$99.99
FREE delivery Sat, Sep 20
1K+ bought in past month
Loading...
6000A 160PSI Car Battery Booster Jump Starter with Air Compressor and Air Blower (All Gas/10L Diesel), Portable Car Battery Booster Pack, Safe Durable Jump Box with 800 Lumen Light/18W Fast Charge

6000A 160PSI Car Battery Booster Jump Starter with Air Compressor and Air Blower (All Gas/10L Diesel), Portable Car Battery Booster Pack, Safe Durable Jump Box with 800 Lumen Light/18W Fast Charge

(21)
$149.99
FREE delivery Mon, May 11Only 2 left in stock.