RubyPlus #31
https://www.rubyplus.com/podcasts/361-Episode-31
- HTTP2 Server
- Caddy, on Ubuntu 16.04
- RailsPanel: A Chrome Extension for Rails Development
- tailing of development.log
- db/rendering/total times, parameter list, rendered views and more
- Background jobs and deploys
- indempotent
- Always prefer many smaller jobs to one large job
- What About Warmup?
- Deploying a Rails Application to Elastic Beanstalk
- Faster Rails: Is Your Database Properly Indexed?
- double index (polymorphic)
- Any frequently used sorting can be improved by using a dedicated index
- A Starter Guide to Ruby Backend Performance
- bullet, rack-mini-profiler
- derailed_benchmarks
- Polyfill: Use Newer Ruby Features on Older Versions
- The polyfills are built using refinements so there is no monkey patching
- Don’t Use Objects as Hash Keys in Ruby
- 313% slower than it would with a Symbol type object
- The hidden cost of the invisible queries in Rails
if Actor.limit(1).count == 0
exists?
method is good
- CuckooFilter
- a probabilistic datastructure which is objectively better than Bloom Filters for set-membership queries