Content
@
0 reply
0 recast
0 reaction
zkcat.eth 🦇🔊
@zkcat
Interesting fact: WHERE field = ANY(ARRAY[...]) may usually perform better than WHERE field IN (...) in PostgreSQL for a large enough list.
1 reply
0 recast
2 reactions
Ryan
@ryansmith
I've had to do this as well. Do you recall why exactly this is?
1 reply
0 recast
1 reaction
Shane da Silva
@sds
At least when it comes to prepared statements, the ANY form can pass the array as a single parameter for a variable number of items, whereas IN requires a different prepared statement for each number of items (since each item is a separate parameter).
0 reply
0 recast
2 reactions