I am using NamedParameterJdbcTemplate to run my query. The query is like:
SELECT id, desc FROM tableA WHERE id IN (:custIds);
Now, I am calling a web service and it is returning a List of ids. So I used NamedParameterJdbcTemplate to map the List of ids to "custIds". However, I got an issue when the List of ids reaches more than 1000. I've read that the DB will not be able to process a IN containing more than 100 or 1000.
As I am restricted to only receiving a List of ids, can you suggest what's best to use aside from NamedParameterJdbcTemplate?