(model_class, q_expression)
return estimate_row_count(query, db_names)
Estimate query row count summed across all partitions
Estimate query row count summed across all partitions
Estimate query row count summed across all partitions
def estimate_partitioned_row_count(model_class, q_expression):
    """Estimate query row count summed across all partitions"""
    db_names = get_db_aliases_for_partitioned_query()
    query = model_class.objects.using(db_names[0]).filter(q_expression)
    return estimate_row_count(query, db_names)
def estimate_partitioned_row_count ( model_class , q_expression ) : db_names = get_db_aliases_for_partitioned_query ( ) query = model_class . objects . using ( db_names [ 0 ] ) . filter ( q_expression ) return estimate_row_count ( query , db_names )