This repeats the approach used in #3629 to limit the huge `NOT IN` fragment. Closes #3645
Attach a file by drag & drop or click to upload