Simple trick to make your queries WAY more efficient // Partial Indexes

  Рет қаралды 3,019

Supabase

Supabase

Күн бұрын

Partial Indexes can drastically increase the performance of your PostgreSQL database queries by reducing the irrelevant data duplicated in the Index. In this video, Jon Meyers demonstrates how to use a `where` clause to specify which rows of data should be indexed.
🐘 Managing Indexes in PostgreSQL: supabase.com/docs/guides/data...
Unlike traditional PostgreSQL Indexes that duplicate entire tables, Partial Indexes contain only a subset of the data that matches a `where` condition. This reduces the amount of time it takes Postgres to find data and minimizes the amount of disk space used by the Index.
00:00 How is a Partial Index different to a regular Index?
00:31 A very inefficient query
01:36 Creating a basic Index
02:21 Excluding irrelevant data with Partial Index
03:30 Reusing this Index across queries
04:04 Are Partial Indexes smaller than traditional Indexes?
05:01 Something to not do with Partial Indexes!
06:12 Segmenting data with Table Partitions
💻 Videos to watch next:
▶ Make your queries 43,240x faster: • Make your queries 43,2...
▶ The FASTEST possible way to query data: • The FASTEST possible w...
▶ Are Multi-Column Indexes a good idea: • Are Multi-Column Index...
👇 Learn more about Supabase 👇
🕸 Website: supabase.com/
🏁 Get started: app.supabase.com/
📄 Docs: supabase.com/docs
🔔 Subscribe for more tutorials and feature updates from Supabase: / @supabase
📱 Connect with Us:
🐙 Github: www.github.com/supabase
💬 Discord: www.discord.supabase.com/
🐦 Twitter: / supabase
▶ Instagram (follow for memes): / supabasecom
ABOUT SUPABASE:
Supabase is the open source Firebase alternative. Supabase provides a full Postgres database for every project with pgvector, backups, realtime, and more. Add and manage email and password, passwordless, OAuth, and mobile logins to your project through a suite of identity providers and APIs.
Build in a weekend, scale to millions.
#Supabase #AppDevelopment #RealtimeApps #DeveloperTools

Пікірлер: 8
@dshukertjr
@dshukertjr 8 күн бұрын
I love these index video series! Learning so much in each video!
@sunfarmfoods6361
@sunfarmfoods6361 6 күн бұрын
Can you make a video which covers pagination using Supabase API. It will be really helpful
@caseyspaulding
@caseyspaulding 7 күн бұрын
Dude you are the man, much appreciated!
@eliuddyn
@eliuddyn 8 күн бұрын
Amazing 🔥🔥
@Yusuf-ok5rk
@Yusuf-ok5rk 7 күн бұрын
does it automatically update index if user is activated or deactivated? new user added etc?
@poolkrooni
@poolkrooni 2 күн бұрын
yes, indexes exist on a column+table level, so Postgre updates the index automatically on data mutations
@Yusuf-ok5rk
@Yusuf-ok5rk 2 күн бұрын
@@poolkrooni thank you
Are Multi-Column Indexes a good idea?
11:22
Supabase
Рет қаралды 2,1 М.
3 reasons you should use Postgres Functions and Transactions
16:58
I’m just a kid 🥹🥰 LeoNata family #shorts
00:12
LeoNata Family
Рет қаралды 18 МЛН
Increíble final 😱
00:37
Juan De Dios Pantoja 2
Рет қаралды 109 МЛН
I can’t believe they built this in React
16:08
Theo - t3․gg
Рет қаралды 57 М.
NEW Folder Structure in Nuxt 4
16:50
Alexander Lichter
Рет қаралды 8 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 176 М.
the most important Next.js features to learn (in 8 minutes)
8:26
Web Dev Cody
Рет қаралды 20 М.
SQL indexing best practices | How to make your database FASTER!
4:08
Make your queries 43,240x faster
13:16
Supabase
Рет қаралды 22 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,4 МЛН
Microservices with Databases can be challenging...
20:52
Software Developer Diaries
Рет қаралды 17 М.
Self-host Maps with Protomaps and Supabase Storage
14:40
Supabase
Рет қаралды 11 М.
React 19's useOptimistic: EVERYTHING you NEED to know
25:24
Jack Herrington
Рет қаралды 10 М.
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,2 МЛН
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 7 МЛН