This content has been marked as final.
Show 1 reply
-
1. Re: Populating two very similar dataTables with one query?
swd847 Aug 15, 2009 1:00 PM (in response to asookazian)You have to either filter in the DB or iterate over the list.
There is no real problem with iterating over the list, java scales better than the database.
Rather than removing entities you are probably better off constructing two new lists, if you order it by status you can probably get away with only iterating half way through the list and then using .sublist().