~/talk

Set operations UNION, INTERSECT, and EXCEPT in MariaDB

Talkat FOSDEM 2021 · on Saturday, 2021-02-06· at 13:55· D.mariadb· [databases]
links:none on file
slides:none on file

Shows exactly how UNION, INTERSECT and EXCEPT behave in MariaDB, including that UNION is DISTINCT by default, UNION ALL returns 10 rows in the example vs 8 with DISTINCT, and why missing parentheses turn a trailing ORDER BY into a global sort. Explains how EXPLAIN EXTENDED + SHOW WARNINGS reveals server rewrites, describes temp-table execution with a UNIQUE index and hidden duplicate counter / marked-rows fields for ALL and DISTINCT semantics, and lists version milestones (10.1–10.5).

AI-written summary · about

  1. 0:00Introduction to set operations
  2. 1:58UNION with DISTINCT default
  3. 3:55Importance of brackets in queries
  4. 5:31INTERSECT and EXCEPT basics
  5. 6:44INTERSECT ALL and EXCEPT ALL
  6. 8:27UNION ALL optimization
  7. 10:04Operation precedence rules
  8. 12:10Historical development in MariaDB
  9. 13:46Internals with EXPLAIN EXTENDED
  10. 17:43Complex ALL operations internals
~/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.