重复抽样优化 Resampled optimisation
·2,447,543篇论文数据,部分数据来源于NoteExpress
通过使用预处理语句,可以避免重复分析/编译/优化周期。
By using a prepared statement you avoid repeating the analyze/compile/optimize cycle.
参数化查询的主要性能好处是优化器可以制定在重复执行语句时能够再使用的存取路径。
The key performance benefit of parameterized queries is that the optimizer can formulate an access path that can be reused over repeated executions of the statement.
重复上面的步骤,再次解释查询,生成查询访问计划之后,优化器会计算出一个更好的、与实际结果很接近的基数估计值。
After repeating the above steps to explain the query again to generate the query access plan, the optimizer computes a better cardinality estimate that is very close to the actual result.
应用推荐