~/talk

Awesome SQL – tips and tricks for application developers

Talkat Voxxed Days Cluj-Napoca 2019 · 2019-10-30..10-31· [databases]
slides:none on file

Many developers still write SQL-92 queries, but modern SQL is concrete: use WITH RECURSIVE to materialize a comment tree, compute SUM(...) OVER (PARTITION BY root_id) and DENSE_RANK() to pick the top 3 threads by total score (example mirrors Reddit-style comment trees), use UPSERT / MERGE for atomic insert-or-update to avoid race conditions, use JSON columns and “shredding” to turn arrays into relational rows, prefer keyset pagination and SKIP LOCKED for queues, and watch CTE inlining quirks in PostgreSQL for performance.

AI-written summary · about

  1. 0:00Introduction
  2. 0:26Trends in technology
  3. 0:52Stack Overflow
  4. 1:34SQL
  5. 1:50History of SQL
  6. 3:49History of Database
  7. 4:11Why use SQL
  8. 4:30Top database systems
  9. 4:45What does SQL mean
  10. 4:59SQL is a standard
  11. 5:27SQL 92
  12. 6:49Example
  13. 8:11Pagination
  14. 9:11Derived Tables
  15. 10:18SQL Gadgets
  16. 10:59SQL Standard
  17. 11:14Common Table Expressions
  18. 11:41Recursive Table Expressions
  19. 13:54Recursive Common Tables
  20. 16:08Calculate Total Cost
  21. 16:28Aggregation
  22. 17:36Recursive
  23. 19:11Noncore members
  24. 19:59Query structure
  25. 20:24Root ID
  26. 20:45Window Functions
  27. 21:49How does it work
  28. 22:18Streams
  29. 22:34Ranking
  30. 23:12Limit order
  31. 24:56March
  32. 26:42Dis constraint violation
  33. 27:23Merge
  34. 27:53SQL 2006
  35. 30:01SQL 2011
  36. 33:19MySQL
  37. 35:03transform
  38. 35:47virtual table
  39. 36:50new SQL databases
  40. 37:26cockroach GDB
  41. 37:50volDB
  42. 38:55BigQuery
  43. 39:31Google Spanner
  44. 41:30Questions
~/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.