Soulful code

Here we look at the deeper meaning of code.

Extracting Tenants from a Monolith

In this post, I'll share how I built a system to efficiently extract tenants from a large Rails monolith with a complex data model to their own dedicated environments while significantly reducing extraction size and improving performance.
Mikael Henriksson
11 minute(s)

Empty Jobs, Empty Promises

Here’s a compelling case against using Sidekiq, even though it’s often praised for being 15 times faster than Solid Queue or ActiveJob when processing an empty job. While that speed sounds impressive, it’s not the whole story—and there are good reasons to think twice before choosing it.
Mikael Henriksson
3 minute(s)

Supercharge Your Rails Blog: PostgreSQL Full-Text Search Without the Complexity

When I built the blog feature for my Cosmos application, I knew that a good search functionality would be essential for users to find relevant content as the blog grew.  After exploring various options, I settled on using PostgreSQL's full-text search capabilities and the pg_search gem. In this post, I'll share my approach, which offers a clean, maintainable solution without the complexity of database triggers.
Mikael Henriksson
5 minute(s)

Slimming Down Your Docker Images

Docker containers have become the industry standard for application deployment, but as my applications grow, so do my Docker images. Large images lead to slower deployments, increased bandwidth costs, and higher resource usage. In this post, I'll share my recent experience optimizing a Rails application's Docker image by intelligently filtering SVG icons and leveraging a robust .dockerignore file.
Mikael Henriksson
7 minute(s)

Server provisioning for a kamal setup

Kamal doesn't provision anything on your servers, it just installs docker. I use the following to provision my servers before I run Kamal setup.
Mikael Henriksson
5 minute(s)

Taggable Array

In an attempt to keep things stupidly simple, I had issues choosing tags for my array column tags.  Every library I tried expects me to be more complex, so I "rolled my own™
Mikael Henriksson
4 minute(s)

Turbo confirm

Turbo modal's can be a sweet addition to your rails app. Let's go over how to get everything working and use them as a turbo confirm
Mikael Henriksson
3 minute(s)

I am soft and recursion is hard

MongoDB 2.x has few possibilities for data extraction, and I need to make some changes to be able to load it into PostgreSQL. Recursion was the last thing on my mind 🤷‍♂️
Mikael Henriksson
4 minute(s)
Showing 1 to 20 of 27 items