~/talk

Optimize Your DB Performance by Mastering N+1 Queries

TalkinFrenchat Codeurs en Seine 2023 · on Thursday, 2023-10-26· [databases, api-design]
links:none on file
slides:none on file

Explains strategies to avoid N+1 query problems when loading related sub-objects from databases or APIs, comparing approaches used in REST and GraphQL and their trade-offs. Describes design patterns and loading strategies used by ORMs in PHP, with examples drawn from both relational and non-relational databases and the speaker’s experience (including PHP MongoDB driver and Symfony contributions).

AI-written summary · about

  1. 0:00N+1 queries intro
  2. 2:56Understanding N+1 problem
  3. 7:29ORM and batch issues
  4. 10:00GraphQL DataLoader
  5. 13:56PHP ORM approaches
  6. 15:21Optimizing with JSON
  7. 19:59Nested JSON challenges
  8. 22:55Denormalized data model
  9. 28:56MongoDB intro
  10. 31:01Document structure
  11. 33:10Querying MongoDB
  12. 35:43Joins and lookups
  13. 37:08Modeling data
  14. 39:38Atlas features
  15. 40:20Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.