November 202316:1741.7k views

Store 8 feature flags in 1 integer (Bitwise operations in MySQL)

About

This video is a tutorial on using bits & bitmasks for storing feature flags in a database. It involves compressing all data into a single integer column and using bitmasks to activate specific features.

While this method is technically interesting and efficient for compact data storage, it can be convoluted to understand there's no way to properly index it.

Databases

More videos on databases

All videos

Get the next one by email

I’ll send you some more. Not too many.