created_at) AS next_meal FROM meals; http://www.postgresql.org/docs/current/static/tutorial-window.html http://www.postgresql.org/docs/current/static/functions-window.html
ON users(age(now(), dob)); CREATE INDEX idx_user_properties ON users(properties) USING gist; CREATE INDEX CONCURRENTLY ...; https://devcenter.heroku.com/articles/postgresql-indexes
http://www.flickr.com/photos/larimdame/69841886/ Concurrency: http://www.flickr.com/photos/vidyo/5273740859/ Photo Credits Thank You! Harold Giménez Heroku Department of Data @hgmnz