system.query_optimization.cardinality_table module¶
Cardinality table storing and estimating relation and join cardinalities.
- class system.query_optimization.cardinality_table.CardinalityTable[source]¶
Bases:
objectA simple cardinality table used to store cardinalities for problems. Normally, cardinalities are obtained by using system statistics to make an estimation about the sizes of the results.
- get_cardinality_estimation(problem: Problem) int[source]¶
Returns the cardinality estimation for the problem. :param problem: The problem. :return: The cardinality for the problem.