~/talk

The Modern Database Debate: Documents, Tables, or Documents in Tables?

Talkat IntelliJ IDEA Conf 2025 · 2025-06-03..06-04· [databases, data-engineering]
slides:none on file

Compares PostgreSQL and MongoDB with concrete examples: a Spring Data demo app shows many SQL round trips for normalized schemas versus single-document reads in MongoDB, and MongoDB supports multi-document ACID transactions now; warns that putting everything as JSON in Postgres works for storage but PostgreSQL JSON indexing limits make many queries inefficient, whereas MongoDB supports compound indexes on nested/array fields and lets aggregation pipelines run server-side (watch the 16MB BSON aggregation result limit). Recommends modeling by access patterns and testing indexes, not labels.

AI-written summary · about

  1. 0:00Introduction to db debate
  2. 4:50Database popularity trends
  3. 8:01Debunking database myths
  4. 11:26Modeling and complexity
  5. 14:08Data access and transactions
  6. 16:40Documents vs normalized data
  7. 20:06Data modeling strategies
  8. 23:02Modern design and DDD
  9. 25:08Duplication vs normalization
  10. 28:42Domain access patterns
  11. 30:21Spring Data example
  12. 31:34Query generation comparison
  13. 32:44Application-centric modeling
  14. 36:07Query performance tuning
  15. 39:17JSON in SQL databases
  16. 42:35Indexing complex data
  17. 48:01Choosing the right model
  18. 51:16Compound indexing insights
  19. 52:27Final database recommendations
  20. 53:30Best practices
  21. 54:31Handling references
  22. 57:20Database internals and wrap up
~/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.