1. A method for performing query optimization comprising: developing at least one candidate plan for execution of a query; for at least one of said at least one candidate plan, using a view statistic to estimate the cost of said candidate plan; and selecting at least one of said at least one candidate plans as a recommended execution plan.