reduce the number of queries in export subjects from 63k to 9k and in...
reduce the number of queries in export subjects from 63k to 9k and in appointments from 32k to 15 (for ncer data)
reduce the number of queries in export subjects from 63k to 9k and in appointments from 32k to 15 (for ncer data)