def METHOD_NAME():
    """Resets Django's list of logged queries.
    When DJANGO_DEBUG is set to true, Django will log all generated SQL queries
    in a list, which grows indefinitely.  This is ok for short-lived processes;
    not so much for daemons.  We may want those queries in the short-term, but
    in the long-term the ever-growing list is uninteresting and also bad.
    This should be called once-in-a-while from every thread that has Django
    database access, as the queries list is stored in thread-local data.
    """
    query_count = len(django.db.connection.queries)
    if query_count:
        runtime = sum_django_queries_runtime()
        thread = threading.current_thread()
        _query_logger.debug(
            "Thread %s/%s: Removing %d logged Django queries "
            "(total time %.03f):\n%s",
            thread.ident,
            thread.name,
            query_count,
            runtime,
            pformat(django.db.connection.queries),
        )
        django.db.reset_queries()
        gc.collect()