Postgres Sort Instability? | Scaling Postgres 322

Поділитися
Вставка
  • Опубліковано 2 жов 2024

КОМЕНТАРІ • 3

  • @RU-qv3jl
    @RU-qv3jl 3 місяці тому

    Neat video again, thanks for sharing.

  • @hallkbrdz
    @hallkbrdz 3 місяці тому

    Ouch. I didn't realize how postgres would handle this (poorly). That should be a sub-second query, even the first time before any caching.
    A hash join and group here really helps, bypassing all sorts.

  • @jaimeduncan6167
    @jaimeduncan6167 3 місяці тому

    Thanks for the overview. The optimizer: that is one reason, a platform like Oracle supports hints, even if the Optimizer becomes more and more intelligent sometimes it does not have, or does not see patterns in the data that can massively impact performance. It's a big conversation, years ago it was rejected by the core team. For me, there are more impactful things like general performance and indirect indexes but once we have a modern engine like Oriole we should revisit this one.