~/lightning

Lightning talk: The 6 Characters That Could Bring Down Your App

Lightningat EuRuKo 2021 · 2021-05-28..05-29· [web-performance, databases]
slides:none on file

A Rails app suffers huge Postgres CPU spikes and statement timeouts because an ActiveRecord relation uses count (translating to a slow COUNT query) to check existence on a table over 34 million rows with a 30s statement timeout. Replacing ".count > 0" with any? on Rails 5.2 drops CPU by about five to ten times. Also add timestamps, add monitoring, and use lower or per-query statement timeouts for long-running operations.

AI-written summary · about

~/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.