• Stan Hu's avatar
    Fix fast admin counters not working when PostgreSQL has secondaries · b6125f70
    Stan Hu authored
    This commit does a number of things:
    
    1. Reduces the number of queries needed by perform a single query to get all
    the tuples for the relevant rows.
    
    2. Uses a transaction to query the tuple counts to ensure that the data
    is retrieved from the primary.
    
    Closes #46742
    b6125f70
count.rb 3.26 KB