My Oracle 11g SQL query looks something like this:
select distinct(p.person_id)
from person p, activity a
where p.name like '?'
and p.active=1
and p.create_date<=systimestamp
and p.end_date>=systimestamp
and p.person_id = a.person_id
Additionally, I am dynamically adding a couple of date time qualifications (on the activity table) to the query above based on certain conditions.
I am using a batching framework written over JDBC but my question is - Is batching really needed in this case or is just an unnecessary overhead? All the examples which I've seen involved an in
parameter for the purpose of qualifications.
Also, is there a good resource to read about this stuff? I couldn't find any decent sources.
Thanks