视图中的跨模式查询对 Oracle 中的性能有影响吗?

发布于 12-08 23:32 字数 250 浏览 7 评论 0原文

将视图从一种模式转移到另一种模式是否会对性能产生不利影响?

我在一个模式中有大约 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

海螺姑娘2024-12-15 23:32:14

这不是您进行绩效评估的起点。

实际视图的 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)

浴红衣2024-12-15 23:32:14

如果它不是物化视图,那么它对性能的影响应该很小。

If it's not a materialized view, it should have very little effect on performance.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文