load_async in Rails 8: loading associations concurrently
Rails 8's load_async runs association queries concurrently instead of one after another, and getting it right means sizing your connection pool correctly.
254 posts. Browse by category or tag, or use search.
Rails 8's load_async runs association queries concurrently instead of one after another, and getting it right means sizing your connection pool correctly.
Chrome's "blocked:other" status silently kills analytics and error-tracking scripts, and proxying those requests through your own server is the fix.
PostgreSQL 18 deprecates MD5 authentication, and migrating to SCRAM-SHA-256 in mixed mode lets you switch pg_hba.conf without downtime or forced app changes.
A keyword-argument mismatch between Ruby 3.4 and connection_pool 3.x breaks RedisCacheStore at Rails 8.1.1 boot, fixed with a patch loaded before initializers run.
Install and configure OpenSSH inside WSL2, enable systemd, and forward a Windows port so you can SSH into your WSL environment from anywhere on your LAN.
Static CSS color values vs. variables: why hard-coded colors bite you later, and how to structure colors so they stay maintainable.
How to cut the latency cost of moving from a shared database to an API-driven architecture, using caching, request aggregation, and async writes.
How Puma worker timeouts and Nginx 499 errors expose slow Rails requests, and how to fix them with aligned timeouts, background jobs, and caching.
A flaky RSpec suite traced to a Rake task that commits data outside the per-test transaction, and how DatabaseCleaner's truncation strategy fixes it.
Using application services to build test data couples your specs to that business logic, making test suites slow and fragile; Factory Bot traits fix it.