Delete and import while delete still running

If you have a delete query running, and then meanwhile you import documents that qualify to be deleted by that query (eg. you deleted on “where run = 21” and then import documents that have “run: 21”), will these new documents be removed as well?

Depends on scan_consistency setting of your query. Any things that imported till the scan_consistency will be deleted.

What would I have to set it at to make it not remove newly imported documents?

https://developer.couchbase.com/documentation/server/current/architecture/querying-data-with-n1ql.html

Note: If import still running while delete is issued , you may have to issue delete again after import completion.

I mean the opposite. I don’t want the import ( which I’m doing via the python SDK ) to happen yet until all the delete queries have been executed.