Is it possible to make a performant query for docs not matching a schmea?

Hi there.

We use strict schema validation in our setup and have a “sanity” script that checks if there should be any documents not matching the schema.

The query is like this: {$nor: [<schema>]}.

It works, but it’s very slow.

Is it possible to do this in a perfomant way - please advice.