• Aakriti Gupta's avatar
    Improve performance of Geo verification queries · 52f68e9c
    Aakriti Gupta authored
    Adapt Geo verification queries to conditionally
    use replicable model table or a separate
    verification details table.
    
    With the use of separate tables for verification
    information, we want to adapt verification queries
    such that they don't use extra filters that were
    already used to backfill the separate tables.
    
    This is done by splitting the original scope on
    replicable models, `available_verifiables` into
    two new scopes, `verifiables` and
    `with_verification_state_record`.
    
    EE: true
    52f68e9c
replicable_model.rb 3.2 KB