Avoid costly NOT IN filter on an empty list
Merge pull request #172 from guidow/avoid_emtpy_list_filter

Avoid costly NOT IN filter on an empty list