Тёмный

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

PlanetScale
Подписаться 38 тыс.
Просмотров 39 тыс.
50% 1

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.
In future videos, alternative techniques such as storing the flags in a JSON column or a separate table using a many-to-many relationship will be discussed.
You can watch the second video (storing as JSON) here: • Storing feature flags ... .
To learn more about PlanetScale, head to planetscale.com/youtube!
------
00:00 Feature flags
00:57 Bits and bytes
02:42 Bitwise operators
03:58 Querying with bitmasks
09:06 Adding and removing flags
13:17 Finding unused flags and indexing
14:54 Pros and cons
------
💬 Follow PlanetScale on social media
• Twitter: / planetscale
• Discord: / discord
• TikTok: / planetscale
• Twitch: / planetscale
• LinkedIn: / planetscale

Наука

Опубликовано:

 

16 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 217   
Далее
Speed up your MySQL database with the buffer pool
9:24
Pagination in MySQL - offset vs. cursor
13:20
Просмотров 55 тыс.
50 YouTubers Fight For $1,000,000
41:27
Просмотров 126 млн
RAND is too slow (in MySQL)
17:32
Просмотров 13 тыс.
Easy database indexing strategies
36:03
Просмотров 23 тыс.
Faster than a regular database index
13:39
Просмотров 19 тыс.
Working with time series data in MySQL
20:35
Просмотров 20 тыс.
Don't hide your database indexes!
11:35
Просмотров 12 тыс.
Faster geospatial queries in MySQL
13:46
Просмотров 19 тыс.
Storing money in MySQL (the right way)
7:52
Просмотров 41 тыс.
ЗАКОПАЛ НОВЫЙ ТЕЛЕФОН!!!🎁😱
0:28