An optimization technique for postgre sql any

id = any (array[32,231])

Optimized to the following

id = any (VALUES (32),(160),(188),(231))

 

The optimization effect is obvious when querying large amounts of data

Guess you like

Origin blog.csdn.net/weixin_38230961/article/details/112808085