In Rails 8 the behavior of the rails db:migrate command has changed for fresh databases (see PR #52830).
This release adds asynchronous compilers and many other features requested by the community. We also fixed a number of performance...
Note Compiling Sass is probably the slowest part of your build, so this is worth a try if you're...
geordi dump: Allow to forward the compression option to the underlying dumple command, e.g. geordi dump --compress=zstd:3...
Frontend performance and user experience are orthogonal to feature development. If care is not taken, adding features usually degrades frontend...
We usually ship applications that self-host webfonts to comply with GDPR. Many popular web fonts are available as NPM...
Even if you don't make any beginner mistakes like N+1 queries or missing DB indices, some requests can...
Use these snippets when you want to measure yourself. Currently available: Core Web Vitals Largest Contentful Paint (LCP) Largest Contentful...
Here is a workaround for when you want to use text-wrap: balance but must also render nicely for browsers...
PostgreSQL can cosplay as a full-text search engine. It doesn't have the features or fidelity of ElasticSearch or...
The key to unlocking the full potential of LLMs in coding lies in crafting precise prompts. The main challenge is...
When debugging slow SQL queries, it’s helpful to understand the database engine's query plan. Whenever you execute a...
Some key highlights and points from the linked article TestProf II: Factory therapy for your Ruby tests. The Problem with...
Slow test suites are a major pain point in projects, often due to RSpec and FactoryBot. Although minitest and fixtures...
Recently I needed to benchmark an Active Record query for performance measurements. I wrote a small script that runs each...
I was recently asked to optimize the response time of a notoriously slow JSON API endpoint that was backed by...
Debouncing a method call delays its execution until after a specified time has passed. If it's called again before...
We are using assignable_values for managing enum values in Rails. Nevertheless Rails is adding more support for enum attributes...
Debugging performance issues in your Rails app can be a tough challenge. To get more detailed insights consider using the...
I recently noticed a new kind of flaky tests on the slow free tier GitHub Action runners: Integration tests were...
The linked article suggests an interesting way to speed up tests of Rails + Postgres apps: PostgreSQL allows the creation of...
Getting an entire test suite green can be a tedious task which involves frequent switches between the CLI that is...
Getting CSS (and JS) live reloading to work in a esbuild / Rails project is a bit of a hassle, but...
TLDR Using .includes or .eager_load with 1-n associations is dangerous. Always use .preload instead. Consider the following ActiveRecord...