class documentation

class JoinPromoter: (source)

View In Hierarchy

A class to abstract away join promotion problems for complex filter conditions.

Method __init__ Undocumented
Method __repr__ Undocumented
Method add_votes Add single vote per item to self.votes. Parameter can be any iterable.
Method update_join_types Change join types so that the generated query is as efficient as possible, but still correct. So, change as many joins as possible to INNER, but don't make OUTER joins INNER if that could remove results from the query.
Instance Variable connector Undocumented
Instance Variable effective_connector Undocumented
Instance Variable negated Undocumented
Instance Variable num_children Undocumented
Instance Variable votes Undocumented
def __init__(self, connector, num_children, negated): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def add_votes(self, votes): (source)

Add single vote per item to self.votes. Parameter can be any iterable.

def update_join_types(self, query): (source)

Change join types so that the generated query is as efficient as possible, but still correct. So, change as many joins as possible to INNER, but don't make OUTER joins INNER if that could remove results from the query.

connector = (source)

Undocumented

effective_connector = (source)

Undocumented

Undocumented

num_children = (source)

Undocumented

Undocumented