Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Let's Talk Databases in Python - SQLAlchemy and Alembic

PyCon US via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This talk explains how to manage production databases with SQLAlchemy and Alembic, from modeling data and managing connections to applying schema changes safely. It also examines performance issues such as lazy loading and unexpected query generation.

Syllabus

Intro
What's an ORM?
Available Python ORMS
User Model
Common Base
Validation
Relationships
Unique Constraints
Multi Column Indexes
Partial Indexing
Functional/Expression Indexing
Connecting to the DB
Inserting Data
Using a Session Context Manager
Session Scoping
Establishing a DB Connection
Connection Pools
Creating the DB
Database Migrations
Database Migration Libraries
Configuration
Creating a Migration
Run the migration
Downgrade the migration
Modify an Existing Table
Modify Data
Problems in the Wild: Lazy Loading
Lazy Loading: What is it?
Lazy Loading: Why is it a problem?
Lazy Loading: Use Eager Load Instead!
Problems in the Wild: Unexpected Query Generation
Review
Questions

Taught by

PyCon US

Reviews

Start your review of Let's Talk Databases in Python - SQLAlchemy and Alembic

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.