Massive DELETEs | Postgres.FM 093 |

  Рет қаралды 446

PostgresTV 💙💛

PostgresTV 💙💛

3 ай бұрын

[ 🇬🇧_🇺🇸 Check out the subtitles - we now edit them, ChatGPT+manually! You can also try KZbin's auto-translation of them from English to your language; try it and share it with people interested in Postgres!]
Nikolay and Michael discuss doing massive DELETE operations in Postgres - what can go wrong, how to prevent major issues, and some ideas to minimise their impact.
Here are some links to things they mentioned:
* Article based on Nikolay’s talk, including batching implementation (translated to English) habr-com.translate.goog/en/ar...
* Our episode on WAL and checkpoint tuning postgres.fm/episodes/wal-and-...
* Egor Rogov’s book on Postgres Internals (chapter 10 on WAL) edu.postgrespro.com/postgresq...
* full_page_writes www.postgresql.org/docs/curre...
* TRUNCATE www.postgresql.org/docs/curre...
* Our episode on partitioning postgres.fm/episodes/partitio...
* Our episode on bloat postgres.fm/episodes/bloat
* Our episode on index maintenance postgres.fm/episodes/index-ma...
~~~
What did you like or not like? What should we discuss next time? Let us know in the comments, or by tweeting us on @postgresfm / postgresfm , @samokhvalov / samokhvalov and @michristofides / michristofides
~~~
Postgres FM is brought to you by:
- Nikolay Samokhvalov, founder of Postgres.ai postgres.ai/
- Michael Christofides, founder of pgMustard pgmustard.com/
~~~
This is the video version. Check out postgres.fm to subscribe to the audio-only version, to see the transcript, guest profiles, and more.

Пікірлер: 4
@awksedgreep
@awksedgreep 3 ай бұрын
What you need is UUID's across maybe 25 tables with FKs between each, no on delete cascade, and a need to keep the data from all 25 tables elsewhere(archive schema). Getting
@nitish5924
@nitish5924 3 ай бұрын
What about massive updates ? We recently had a usecase where we have a postgres database that has 250 million rows and we introduced a new date column, we are facing so many issues in backfilling this column today. it would be great if you could share your insights on how to handle such massive updates
@NikolaySamokhvalov
@NikolaySamokhvalov 3 ай бұрын
it's very similar - batching is very much needed additional complexity is index write amplification - all indexes have to be updated (unlikje for DELETEs), unless it's a HOT UPDATE
@kirkwolak6735
@kirkwolak6735 2 ай бұрын
@@NikolaySamokhvalov Excellent point on indexing adding writes. I would certainly add the column. Batch some updates. And only when updates are finished would I consider adding the index on that column. Otherwise it feels like a Footgun!
Buffers II (the sequel) | Postgres.FM 094 | #PostgreSQL #Postgres podcast
36:13
Minor releases | Postgres.FM 097 | #PostgreSQL #Postgres podcast
39:46
PostgresTV 💙💛
Рет қаралды 232
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 101 МЛН
Пранк пошел не по плану…🥲
00:59
Саша Квашеная
Рет қаралды 7 МЛН
CHOCKY MILK.. 🤣 #shorts
00:20
Savage Vlogs
Рет қаралды 13 МЛН
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 55 МЛН
Search | Postgres.FM 090 | #PostgreSQL #Postgres podcast
41:32
PostgresTV 💙💛
Рет қаралды 375
Event-Driven Architecture (EDA) vs Request/Response (RR)
12:00
Confluent
Рет қаралды 132 М.
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 853 М.
80 Year Olds Share Advice for Younger Self
12:22
Sprouht
Рет қаралды 1,7 МЛН
LIMIT vs  performance | Postgres.FM 095 | #PostgreSQL #Postgres podcast
45:23
Why Postgres? | Postgres.FM 108 | #PostgreSQL #Postgres podcast
41:00
PostgresTV 💙💛
Рет қаралды 314
Don't do this | Postgres.FM 091 | #PostgreSQL #Postgres podcast
44:31
PostgresTV 💙💛
Рет қаралды 573
What is a Vector Database?
8:12
IBM Technology
Рет қаралды 67 М.
All creatures are from God #jesus #jesuschrist #jesuslovesyou
0:19
Jesus By Your Side
Рет қаралды 57 МЛН
Идеально повторил? Хотите вторую часть?
0:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 8 МЛН
За девочкой гонится бандит😳
1:00
Trailer Film
Рет қаралды 1,9 МЛН