For a query
SELECT * FROM plain_note WHERE id IN (1, 2, 3, ...);
For the filter id array, I was wondering, is there any limitation on the input array length?
Let's say the size of array is 10,000 items, as fast as speed performance is concerned, is it better to perform using IN clause, or is it better to perform a multiple query like
SELECT * FROM plain_note WHERE id = 1;
SELECT * FROM plain_note WHERE id = 2;
SELECT * FROM plain_note WHERE id = 3;
SELECT * FROM plain_note WHERE id = ...;