filtering cursors to invalidate insert/update using predicate