Removed unused code in services_dao, which led to looking some of the queries.

By removing the join to services for the fetch_stats_by_date_range_for_all_services and dao_fetch_todays_stats_for_all_services
queries we get a 30% and 25% performance improvement.
This commit is contained in:
Rebecca Law
2017-03-01 17:12:29 +00:00
parent 652f76eaf6
commit d36eec652d
2 changed files with 0 additions and 13 deletions

View File

@@ -233,8 +233,6 @@ def get_notifications_for_job(service_id, job_id, filter_dict=None, page=1, page
@statsd(namespace="dao")
def get_notification_billable_unit_count_per_month(service_id, year):
start, end = get_financial_year(year)
month = get_london_month_from_utc_column(NotificationHistory.created_at)
notifications = db.session.query(