Hi Niteesh,
There are few restrictions like, the number of values in IN clause cannot cross more than 1000. Your java service based on the volume on that day, if it returns more than 1000, your processing will fail.
Instead of IN, you can use OR if it goes beyond 1000.
If your table has some date column, you can think of an alternative of using BETWEEN clause by passing range of dates. NOT IN is surely not advisable as it scans the entire table and has some known performance issue.
Probably, some database expert can advice on best way.
HTH
Senthil
#webMethods#Integration-Server-and-ESB#Adapters-and-E-Standards