~/talk

Rapid Data Modeling Using ActiveRecord and the JSON Data Type

Talkat RailsConf 2015 · 2015-04-21..04-23· [databases, ruby-on-rails]
github:dfurber
slides:none on file

Uses Postgres JSON/JSONB and ActiveRecord::Store to put varying attributes into a single data column, exposes them with store_accessor and custom typecasting so form helpers and ransack queries work, and composes reusable embeddable value objects inside the document. Builds an archaeology search and an accessibility assessment site, extracts equals queries fast with Postgres JSONB with GIN index but sees greater-than/less-than and nested-key queries slow (5–60x). Extracts the pattern into a docstore gem that ships and is used.

AI-written summary · about

  1. 0:00Introduction
  2. 1:49Rapid Data Modeling
  3. 4:15Project Introduction
  4. 5:29Archaeology
  5. 7:36Cataloging
  6. 8:48Things
  7. 9:44Attributes
  8. 10:17Object Registry
  9. 12:14Jason Column
  10. 15:38Ransack
  11. 17:25Document Store
  12. 17:59Hybrid Schema
  13. 18:21Rapid Data Modelling
  14. 21:50Inclusive Recreation Resource Center
  15. 28:41Nested Attributes
  16. 34:48Disadvantages
  17. 39:40Wrapup
~/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.