Querying the database with SQLAlchemy, especially at the relationship level, can get very expensive. Sometimes you only want certain columns to be retrieved instead of the e