Taro Logo

GPUs, Indexing and the Optimizer

In this lesson we discuss whether GPUs can speed up databases. We also look at what Stonebraker found hardest when writing Ingres from scratch.

  • GPUs run the same instruction on many data items at once, but indexing doesn’t parallelize well, because a B-tree lookup means following pointers through several memory accesses.
  • Moving data between the CPU and the GPU can also be a bottleneck.
  • The original Ingres was written from scratch, and the hardest part was the query optimizer, which senior database programmers still say is the hardest component today.

Original podcast link: https://youtu.be/YPObBOwIrHk?si=Sk7LMKyzqpPtinCQ