PostgreSQL performance tips you have never seen before | Citus Con: An Event for Postgres 2023

  Рет қаралды 34,450

Microsoft Developer

Microsoft Developer

Күн бұрын

Пікірлер: 29
@RenzoCotta
@RenzoCotta 2 ай бұрын
comming from a MSSQL background I got a job administering Potsgres databases ... I read a couple of books from Hans Jurgen Schoning that helped me a lot in my daily work ... thank you very much sir ... I enjoyed your book as much as I enjoyed this presentation
@JohnMatthew1
@JohnMatthew1 Жыл бұрын
interesting, thank you for the video.
@thienquan9040
@thienquan9040 Жыл бұрын
Thanks for share ! very nice tricks
@greyshopleskin2315
@greyshopleskin2315 5 ай бұрын
The hashtext function IS INTERNAL. You are not supposed to rely on it. It can change implementation and break stuff. It did happen in the past
@phatminh2003
@phatminh2003 10 ай бұрын
Thanks for share!
@nandocamila
@nandocamila Жыл бұрын
Thank you again Hans.. very simple items that normally DBA/E doesn't take in account.
@cesarcofg
@cesarcofg 2 ай бұрын
Awesome very nice explanation
@nmatheus
@nmatheus Жыл бұрын
sehr interessanter Vortrag :)
@enrico1713
@enrico1713 9 ай бұрын
Excellent
@rory_o
@rory_o Жыл бұрын
The initial premise of “there isn’t a go fast setting because that would be default” is already entirely wrong. Postgres defaults are massively conservative even two decades ago. Even showed as much by FDW default is just 50 rows at a time! Modern systems could easily transfer millions of rows in a batch.
@ketaminefairy
@ketaminefairy 11 ай бұрын
haven't watched the video, but this alone makes me very skeptical. I like citus, but is this con really worth the time? Assuming you've watched it... Thanks!
@corniliusrupert5917
@corniliusrupert5917 4 ай бұрын
Thank you for this video.
@vineethv2786
@vineethv2786 3 ай бұрын
Loved it.
@jules4642
@jules4642 Жыл бұрын
Thanks, I didn't know you could reduce table size with the order of column regarding alignement. Great vieo
@blank001
@blank001 7 ай бұрын
17:19 First time hearing this concept, Thank you
@SimarMannSingh
@SimarMannSingh Жыл бұрын
Seems very interesting. Would have to give these tricks a try for sure.... Thanks :)
@Robert-G
@Robert-G Жыл бұрын
15:15 that was a waking nightmare to watch. that’s a horrible oversight on the dbms part. Not just for perf, but also wrt consistency. if the function wasn’t pure, then their way of calling it multiple times, even when every sane person would assume that it’s only called once, could create weird problems that would be hard to track down. I’m still watching, but thx A LOT for this one already!
@dankubb
@dankubb Жыл бұрын
This has bitten me before, but I think it's just a side effect of two features not interacting well together. For me the best way to think about how .* works in PostgreSQL, is to imagine it naively expanding the expression so that it is duplicated once per column. It doesn't attempt to do anything smart, it's just expands the statement *prior* to execution, like how a macro works in other languages. If the function is stable or immutable, it might be possible for postgresql to use the cached result for each column (I don't know if it applies this optimization, I'm just saying it could). If it was volatile though, it *must* execute it once per statement because it could return a different answer each time.
@Robert-G
@Robert-G Жыл бұрын
@@dankubb the classic problem of leaky abstractions. if .* really is just naïvely expanding the whole expression, then that’s IMO a bug. good to know about it, to workaround. but it’s a bug nonetheless…
@OzoneGrif
@OzoneGrif Жыл бұрын
Nice advanced tricks, I'll remind them for my database audits.
@keenoogodlike
@keenoogodlike Жыл бұрын
Great technique
@fayazvar3948
@fayazvar3948 Жыл бұрын
Thanks
@shoaibahmedkhan9676
@shoaibahmedkhan9676 5 ай бұрын
Are we sure default values doesn't take storage space for each row. ChatGPT says. Hahah. The default value of a column in PostgreSQL does take up storage space for each row where the default is used. When a default value is specified for a column, PostgreSQL doesn't store the default value itself for each row; rather, it stores the value as if it were explicitly set by an insert command. This means that even if a column has a default value, every row that uses this default will have storage allocated for that value, just as if it had been specified explicitly in the INSERT statement. The actual storage mechanism does not optimize away the storage for default values; they are treated like regular values.
@jaikaransaini6122
@jaikaransaini6122 Жыл бұрын
Can anyone please tell me if on video 6:25 "storing data efficiently" points has any mention on official postgresql documentation i tried it and it worked I want to learn more about it through documentation.
@BradleyKieser
@BradleyKieser 7 ай бұрын
Gold dust
@elzabethtatcher9570
@elzabethtatcher9570 Жыл бұрын
Not very useful, but very interesting.
@RU-qv3jl
@RU-qv3jl Жыл бұрын
Well I’ve used similar techniques in SQL Server so I wouldn’t say it’s not very useful. Everything has its place. You may not need it and yet other people might. As someone who uses PG only for smaller project because work wants to keep using SQL Server, I was quite happy to learn about the FDW bucket sizes. Some of the other things I have no use for in PG but hashing text is something I have used a fair bit in SQL Server to make multi-column equality index lookups a lot faster.
@thanatosor
@thanatosor Жыл бұрын
Now ppl need to seek for secret way of improving performance on a piece of software that someone else made. How desperate
@hansschonig2472
@hansschonig2472 10 ай бұрын
well, there is always a corner case in any system of this size. 99% work nicely by default - but any system will have things that can be improved over time
When u fight over the armrest
00:41
Adam W
Рет қаралды 32 МЛН
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 215 М.
PostgreSQL Indexing : How, why, and when.
31:21
PyCon AU
Рет қаралды 79 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 370 М.
PostgreSQL performance tips you have never seen before V2.0 | POSETTE 2024
26:01
Database Indexing Explained (with PostgreSQL)
18:19
Hussein Nasser
Рет қаралды 318 М.
Webinar: Tuning Tips to Maximize Postgres Performance
1:08:54
Wait... PostgreSQL can do WHAT?
20:33
The Art Of The Terminal
Рет қаралды 202 М.