Skip to content

Postgresql Performance Tuning vs SQL Window Functions Cheatsheet

Compare these two topics side by side to decide which to study first โ€” or tackle both!

๐Ÿ“š

Postgresql Performance Tuning

Databases

103

Cards

~52m

Study time

Advanced

Difficulty

Sample questions

  • โ–ธHow do you find the slowest queries in Postgres?
  • โ–ธHow do you read an EXPLAIN plan?
  • โ–ธDifference between EXPLAIN, EXPLAIN ANALYZE, EXPLAIN (BUFFERS, ANALYZE)?
  • โ–ธWhy is a Seq Scan faster than an Index Scan sometimes?
  • โ–ธFunction used to add a B-tree index for equality + range queries?
Study Postgresql Performance Tuning โ†’
๐Ÿ“š

SQL Window Functions Cheatsheet

Databases

223

Cards

~112m

Study time

Advanced

Difficulty

Sample questions

  • โ–ธRunning total of <i>amount</i> by <i>user_id</i> ordered by <i>ts</i>?
  • โ–ธDifference between ROW_NUMBER, RANK, DENSE_RANK?
  • โ–ธTop N rows per group?
  • โ–ธPrevious row's value in same partition?
  • โ–ธNext row's value?
Study SQL Window Functions Cheatsheet โ†’

๐Ÿค” Which should you study first?

Both topics are in the Databases category, so they complement each other well. We suggest starting with the smaller deck to build momentum:

Postgresql Performance Tuning

103 cards ยท ~52 min ยท Advanced

โญ Quicker to complete

SQL Window Functions Cheatsheet

223 cards ยท ~112 min ยท Advanced