SQL Server 将性能与视图同义
如果我有两个数据库并在其中一个数据库中创建一个到另一个数据库的链接表(同义词),然后将该同义词包装在视图中,是否会出现性能问题?我想要这样做的原因是让 SQLMetal 看到同义词并为其生成一个 linq 实体。数据库位于同一服务器上。另外,如果我这样做了 100 多次,所有子数据库都链接到主数据库中的一组表,会出现问题吗?
If I have two databases and create a linked table (synonym) in one of them to the other one and then wrap that synonym in a view, will there be a performance issue? The reason I want to do this is to have SQLMetal see the synonym and generate a linq entity for it. The database are on the same server. Also if I did this 100+ times, all child databases linking to a set of tables in a master database, would that have a problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不 - 不应该是一个问题。查询优化器总是说“你这是什么意思”,除非遇到一个过程(或带有 BEGIN/END 的函数),否则它会继续运行。同义词很好,观点也很好。
Nah - shouldn't be an issue. The Query Optimizer says "What do you mean by this" all the time, and unless it comes across a procedure (or function with BEGIN/END), it'll keep going. Synonyms are fine, views are fine.