Search
Lessons (6)
- Database Relations & Foreign Keys
… foreign keys connect one-to-one, one-to-many and many-to-many records](/img/database/relations.svg …
- DBMS Foundations, Keys & Normalization
… by engine. Foreign key References another table key and protects integrity. Do not claim unique keys allow exactly …
- Indexes, EXPLAIN & Query Plans
… foreign keys indexed, no huge loops, no spills to disk. 6. Statistics fresh ( ANALYZE ), table not bloated. 7 …
- Database Indexing & Transactions
… Check pg stat user indexes and remove them. Index these: primary keys (automatic), foreign keys, columns in frequent …
- Normalization & Denormalization
… Then I remove non-key-to-non-key dependencies for 3NF, using foreign keys and unique constraints to …
- Python Web APIs: FastAPI and Django
… owner = models.ForeignKey(settings.AUTH USER MODEL, on delete=models.CASCADE, related name="tasks") title = models.CharField(max …