Тёмный

Let's check Index and Inverted Index performance - Postgres 

Binary Igor
Подписаться 307
Просмотров 455
50% 1

Let's see how much performance we will gain from Index (B-tree) and the Inverted Index (GIN) in PostgreSQL!
We have a database with 15 million rows and each row has both regular fields, some with B-tree index, and attributes JSONB field with GIN (Generalized Inverted Index) index on it.
We will discover exactly how much performance we can gain for the same data in the different formats. Let's go!
Note: at ~ 9:50, GIN Index took query from ~4000 ms to 2 ms (instead of 0.2 ms). Apologies for the mistake guys!
2023-10-08 update: I have finally finished writing the promised blog post. Enjoy it! binaryigor.com/index-a-crucia...
Repo: github.com/BinaryIgor/code-ex...
Related post about the search space: binaryigor.com/reducing-the-s...
Official Postgresql docs about GIN www.postgresql.org/docs/curre...
#database #databaseprogramming #postgresql

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

 

28 сен 2023

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 2   
@aryanpathania03
@aryanpathania03 7 месяцев назад
Note: At 9:55, GIN Index took query from ~4000 ms to 2 ms (not 0.2 ms).
@BinaryIgor
@BinaryIgor 7 месяцев назад
Absolutely! Thanks for pointing this out, I've added a note in the description ;)
Далее
the new PS4 jailbreak is sort of hilarious
12:21
Просмотров 150 тыс.
Faster database indexes (straight from the docs)
13:28
Просмотров 124 тыс.
SQL Databases with Pandas and Python - A Complete Guide
16:59
7 4 Query Processing with the Inverted Index 6 43
6:44
Database Indexing Explained (with PostgreSQL)
18:19
Просмотров 286 тыс.
Complete MongoDB Tutorial #25 - MongoDB Atlas
7:24
Просмотров 97 тыс.
Aggregation | MongoDB | Tutorial 10
12:45
Просмотров 265 тыс.
Let's build GPT: from scratch, in code, spelled out.
1:56:20