视图中的跨模式查询对 Oracle 中的性能有影响吗?
将视图从一种模式转移到另一种模式是否会对性能产生不利影响?
我在一个模式中有大约 40 个视图。我想创建一个具有所有正确权限的新架构。假设 TableA 驻留在模式 A 中。因此我的视图将位于模式 A 中。因此我只需 select * from TableA
即可。现在我将此视图移至架构 B。由于该表位于架构 A 中,因此我需要执行 select * from A.TableA
。这种跨模式查询会导致任何性能问题吗?
Will moving views from one schema to another have any adverse effect on performance?
I have about 40 views in one schema. I want to create a new schema which will have all the correct permissions. Suppose TableA resides in schema A. So my view will be in schema A. So I would do simply select * from TableA
. Now I move this view to schema B. Since the table is in schema A, I would need to do select * from A.TableA
. Will this cross-schema query cause any performance issues?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

这不是您进行绩效评估的起点。
实际视图的 sql 可能比您将其放置在哪个架构中重要得多。
编辑:
视图所在的位置不应影响性能。 (除了模式如何跨块和数据文件布局)
this is not where you might start in a performance review.
the sql of the actual view is probably far more important than which schema you place it in.
edit:
where the view resides should not affect performance. (aside from how the schema is laid out across blocks and datafiles)