Exemple #1
0
    def stmt_fixture_one(self, mapping_fixture):
        # note that by using ORM elements we will have annotations in these
        # items also which is part of the performance hit
        Parent, Child = mapping_fixture

        return [(select(Parent.id, Child.id).select_from(
            ormjoin(Parent, Child, Parent.children)).where(Child.id == 5))
                for i in range(100)]
Exemple #2
0
    def stmt_fixture_one(self, mapping_fixture):
        Parent, Child = mapping_fixture

        return [(select(Parent.id, Child.id).select_from(
            ormjoin(Parent, Child, Parent.children)).where(Child.id == 5))
                for i in range(100)]