~/talk

Postgres, the Best Tool You're Already Using

Talkat RailsConf 2013 · 2013-04-29..05-02· [databases, ruby-on-rails]
slides:none on file

Shows concrete Postgres tricks: use text arrays plus the contains/overlaps operators to implement tagging and materialized-path hierarchies, compute depth with array_length and find parents/children via overlaps, enable the hstore extension (create_extension hstore) and prefer sql schema format to store and query sparse key/value metadata, and use full‑text search with to_tsvector('english', body) and to_tsquery while sanitizing user input, add a GIN index on the same to_tsvector expression, and beware tsquery wildcard and indexing gotchas.

AI-written summary · about

  1. 0:00Start
  2. 1:41Tagging
  3. 4:38Contains Operator and the Overlaps Operator
  4. 8:34Model Hierarchies
  5. 11:01Array Length
  6. 12:26Find the Children of a Record
  7. 13:26The Parents of a Record
  8. 22:36Updating Age Stores
  9. 23:29Full Text Search
  10. 25:08Postgres Removes Common Stop Words
  11. 27:52Wildcard Matches
  12. 32:04Summary
~/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.