Any performance issues in the code below:
Goal: I want retrieve data from all the rows for a particular id in the list and then call a function
a = list of 2000 ids:
for (int i = 0; i < a.size; i++) {
// Execute query "SELECT * FROM SOME_TABLE WHERE ID = I";
// Use the data and call a function
}
Any other solution? Is it possible to have just one query with group by id and whenever group changes call a function.
Thanks