SQL Alchemy Performance Considerations Query The example table is around 7 million observations, 50+ columns, including 160+ account names, and suppose we want to get the distinct account names. The data model we have defined is the ConsumerLoanStatic with table name consumer_loan_static.