

@method_decorator(catch_and_raise_exceptions)
def get_total_records(self):
    qc = self.query_context()
    for c in self.columns:
        qc.append_column(c.view)
    session = connection_manager.get_scoped_session(self.engine_id)
    return qc.count(session.connection(), self.filter_values)

dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/userreports/reports/data_source.py ConfigurableReportDataSource.get_total_records/original