On the Optimal Ordering of Maps, Selections, and Joins Under Factorization
نویسندگان
چکیده
We examine the problem of producing the optimal evaluation order for queries containing joins, selections, and maps. Specifically, we look at the case where common subexpressions involving expensive UDF calls can be factored out. First, we show that ignoring factorization during optimization can lead to plans that are far off the best possible plan: the difference in cost between the best plan considering factorization and the best plan not considering factorization can easily reach several orders of magnitude. Then, we introduce optimization strategies that produce optimal left-deep and bushy plans when factorization is taken into account. Experiments (1) confirm that factorization is a critical issue when it comes to generating optimal plans and (2) we show that to consider factorization does not make plan generation significantly more expensive.
منابع مشابه
Optimal Ordering of Selections and Joins in Acyclic Queries with Expensive Predicates
The generally accepted optimization heuristics of pushing selections down does not yield optimal plans in the presence of expensive predicates. Therefore, several researchers have proposed algorithms for the optimal ordering of expensive joins and selections in a query evaluation plan. All of these algorithms have an exponential run time. For a special case, we propose a polynomial algorithm wh...
متن کاملOptimal ordering quantities for substitutable deteriorating items under joint replenishment with cost of substitution
In this paper we develop an inventory model, to determine the optimal ordering quantities, for a set of two substitutable deteriorating items. In this inventory model the inventory level of both items depleted due to demands and deterioration and when an item is out of stock, its demands are partially fulfilled by the other item and all unsatisfied demand is lost. Each substituted item incurs a...
متن کاملQueueing Inventory System in a Two-level Supply Chain with One-for-One Ordering Policy
Consider a two-level inventory system consisting of one supplier and one retailer. The retailer faces a Poisson demand with a known rate and applies base stock (one-for-one ordering) policy. That is, his inventory position is set to a pre-determined level, so the demand pattern is transferred exactly to the supplier. The supplier has an inventory system and a service unit with exponentially dis...
متن کاملTopological Centers and Factorization of Certain Module Actions
Let $A$ be a Banach algebra and $X$ be a Banach $A$-bimodule with the left and right module actions $pi_ell: Atimes Xrightarrow X$ and $pi_r: Xtimes Arightarrow X$, respectively. In this paper, we study the topological centers of the left module action $pi_{ell_n}: Atimes X^{(n)}rightarrow X^{(n)}$ and the right module action $pi_{r_n}:X^{(n)}times Arightarrow X^{(n)}$, which inherit from th...
متن کاملOptimal Ordering Policy with Stock-Dependent Demand Rate under Permissible Delay in Payments
We develop an inventory model to determine optimal ordering policy under permissible delay in payment by considering demand rate to be stock dependent. Mathematical models are derived under two different cases: credit period being greater than or equal to cycle time for settling the account, and credit period being less than or equal to cycle time for settling the account. The results are illus...
متن کامل