Improve performance of the "Missing consent" export wizard
|Reported by:||Nicklas Nordborg||Owned by:||Nicklas Nordborg|
This takes a very long time.
The main reason seems to be that the code load all case+blood samples and then performs a check in the code for missing consent. Loading all those items takes a long time. It would be better to apply a filter already at the query level to restrict what is loaded.
In this case the filter should only load samples with missing CONSENT or CONSENT_DATE annotation