for each _aud-audit-data no-lock where
_aud-audit-data._event-context begins ("PUB.Debtor" + chr(6)):
...
This simple query is not working as expected, because it also returns results for PUB.DebtorInvoice.
I could rewrite it like this, but this is an unindexed query, so it...