~/talk

Common Query Patterns in MQL (Mongo Query Language)

Talkat NDC Oslo 2023 · 2023-05-22..05-26· [databases]
slides:none on file

Practical guide to MQL aggregation that shows actual patterns and pipelines rather than theory: identifies three document shapes (flat/set/nest patterns), maps them to pipeline roles (gather → assemble → finish), and walks through concrete operators ($match, $group, $unwind, $project, $sort, $skip/$limit, $merge, $sample). Demonstrations include paging, grouping averages and maxima, unwinding arrays, and renaming fields. Performance advice is specific: prefer index‑assisted gathers, trim docs before $group to avoid the 100 MB memory limit (or force disk swap), and prefer incremental $merge for large analytics.

AI-written summary · about

  1. 0:00Start
  2. 2:16Behavior Chain
  3. 2:50Pattern as Trigger
  4. 9:44Pipeline Sequence Archtype
  5. 15:38Frequently Used Stages
  6. 18:14Moderately Used Stages
  7. 41:08Kata 2 Pipeline Stages
  8. 48:00Kata 4 Pipeline Stages
  9. 55:11Where to Optimize?
~/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.