~/talk

Denormalization With Eloquent: How, Why and When

Talkat Laracon EU 2017 · on Tuesday, 2017-08-29· [php, laravel, databases]
slides:none on file

Claims that precomputing read projections cuts expensive multi-join queries (often 10–30 left joins) down to single-table reads, turning queries that can take four or five minutes into fast selects. Implements this with Eloquent model events that enqueue denormalizers to populate materialized views (or scheduled rebuilds), optionally wrapped in the same transaction for strong consistency or queued for eventual consistency. Advises monitoring the queue, providing an artisan rebuild command, and naming views; this is built as application code and materially improves read performance.

AI-written summary · about

  1. 0:00Intro
  2. 1:06ASSUMPTIONS
  3. 3:09HOW POPULAR IS Normalization?
  4. 4:47NORMALIZATION Database normalization is the process of Organizing the columns (attributes) and tables (relations) of a relational database to reduce data redundancy and improve data integrity
  5. 13:50DENORMALIZATION
  6. 18:151. Fill the table once 2. Run the query to fill the table at intervals (24 hours) 3. Update the materialized view as source data changes...
  7. 21:23MATERIALIZED VIEWS With Eloquent
  8. 30:39FUN THINGS WE CAN DO
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.