from https://www.datadoghq.com/blog/100x-faster-postgres-performance-by-changing-1-line/

 

The query optimizer is fooled by the use of ARRAY[...] to list all the primary keys to look up. VALUES (...), (...) lets the optimizer make full use of the primary key index instead. It is literally a one-line change, which makes no semantic difference.

相关文章:

  • 2021-08-02
  • 2021-05-24
  • 2021-07-30
  • 2022-12-23
  • 2021-06-10
  • 2021-08-30
猜你喜欢
  • 2021-07-21
  • 2021-04-30
  • 2021-05-21
  • 2021-08-06
  • 2021-06-12
相关资源
相似解决方案