We have an application where the user can multiple select items (could be large numbers like a 1000 items) to delete. The way we thought of implementing this is as follows:
delete from tablename where id in (id1, id2,...)
where we get the id's from the items that the user selected. The dba is not happy with this, he claims a big in clause kills performance of the database. In fact, he said, in MS-SQL you are limited to 500 items in an in clause.
Any suggestions on some other way to do this? The data is in 1 table and we are deleting only the selected records.