首页 \ 问答 \ 在Oracle中总是使用join子句是否好?(Is it good to always use join clause in Oracle? [duplicate])

在Oracle中总是使用join子句是否好?(Is it good to always use join clause in Oracle? [duplicate])

这个问题在这里已有答案:

我最近了解到在Oracle中我们可以做类似的事情

select t1.a, t2.b 
from table1 t1, table2 t2
where t1.x = t2.x

这相当于

select t1.a, t2.b
from table1 t1
join table2 t2 on (t1.x=t2.x)

是否有任何性能差异或是否有任何其他参数我们应该使用一种风格而不是另一种风格?


This question already has an answer here:

I have recently learned that in Oracle we can do something like

select t1.a, t2.b 
from table1 t1, table2 t2
where t1.x = t2.x

which is equivalent to

select t1.a, t2.b
from table1 t1
join table2 t2 on (t1.x=t2.x)

Is there any performance difference or are there any other arguments that we should use one style instead of the other?


原文:https://stackoverflow.com/questions/43802118
更新时间:2022-12-22 21:12

最满意答案

好吧,一个简单的方法来确定问题是否是因为负载均衡器和粘性会话是完全停止使用它并查看问题是否重现。

如果无法做到这一点,您可以将会话存储在进程[状态服务器]之外并再次检查会话。 我曾在Microsoft全球技术支持部门工作,并且看过许多粘性会话无效的情况!

http://aspalliance.com/1182


Well, an easy way to figure out if the issue is because of Load balancer and sticky session is to stop using it completely and see if the issue reproduces.

If that is not possible, you can store the session out of process [state server] and check the sessions again. I worked at Microsoft Global Technical Support and have seen many cases where the sticky session just doesn't work!

http://aspalliance.com/1182

相关问答

更多
  • 他们不一样。 IIS会话超时适用于CLASIC ASP页面。 web.config是用于asp.net的。 They are not the same. The IIS session timeout is for clasic ASP pages. The web.config one is for asp.net.
  • 好吧,一个简单的方法来确定问题是否是因为负载均衡器和粘性会话是完全停止使用它并查看问题是否重现。 如果无法做到这一点,您可以将会话存储在进程[状态服务器]之外并再次检查会话。 我曾在Microsoft全球技术支持部门工作,并且看过许多粘性会话无效的情况! http://aspalliance.com/1182 Well, an easy way to figure out if the issue is because of Load balancer and sticky session is to st ...
  • IMO,重要的是应用DRY原则: public class SessionVariables { public const string MyStoredSessionVariable = "MyStoredSessionVariable"; ... } 接着: Session[SessionVariables.MyStoredSessionVariable] = ... 我认为你使用的字符串文字并不重要,只要它足够独特并且你以一致的方式进行,就像其他人提到的那样。 IMO, it is ...
  • 如果您在ASP.NET中使用默认会话,则它将存储在ASP.NET工作进程中的内存中。 它是一个服务器端缓存,与客户端无关。 还有其他会话存储选项可用,例如专用会话状态机或sql server。 您也可以推出您自己的会话提供程序。 所有在这里解释http://msdn.microsoft.com/en-us/library/ms972429.aspx If you are using the default session in ASP.NET then it is stored in memory insi ...
  • 在Web场方案中,请求可以转到Web场中的任何工作进程。 在这种情况下使用进程内会话状态存储可能导致数据丢失,如果不同的工作进程为同一会话提供不同的请求。 但是,如果仅使用单个Web服务器,则进程内会话状态提供程序应该是最快的,因为没有额外的网络延迟。 Redis用作分布式缓存,Redis会话状态提供程序适用于Web场方案,因为Web场中的所有各种工作进程都将与单个Redis实例进行通信。 物理上将Redis实例放置在Web场实例附近有助于在一定程度上减少延迟。 In a web farm scenario ...
  • 检查Windows事件日志以确保工作进程不被强制回收。 在你的代码中可能有某些东西会导致工作进程强制自己重新执行,在这种情况下,当会话存储在inrocroc中时,它将失去它所持有的所有会话值。 Check the Windows Event Log to ensure that the Worker Process is not being forced to recyle. There may be something in your code that causes the Worker Process ...
  • 除了womp: 未启用Cookie 在设置会话变量之后立即重定向 我会特别怀疑第二个,特别是如果你使用任何形式的Response.Redirect的urlrewriting机制。 In addition to womp: Not having cookies enabled Redirecting immediately after setting the session variable(s) I would suspect the second one in particular, especially ...
  • 部分上方显示的部分没有连接到sessionState。 ConnectionStrings部分用于其他目的,例如当您拥有自己的数据库并且需要连接到它时,此部分仅包含用于MemberShip,Profiles等的数据库的详细信息。 元素有自己的设置,用于指定名为sqlConnectionString的连接字符串,如下所示:
    您使用的是哪个版本的IIS? 如果它在Windows Server 2008 R2或更高版本上,则可以基于每个应用程序配置会话状态(配置实际存储在应用程序的web.config文件中)。 而不是像在链接中那样转到根网站节点上的会话状态,以便您可以看到要更改的应用程序,选择它然后选择会话状态并选择您希望应用程序使用的会话存储。 默认的Session设置是.Net应用程序的InProc,因此我建议您更改要使用State Server的应用程序。 Which version of IIS are you usin ...
  • 来自原始ASP页面的Session变量是否会保留在最终的ASP页面中? 简短回答:是的。 这与你在ASP网站上留下一个页面,使用该浏览器窗口/标签去谷歌等其他网站没有什么不同,然后又回来了。 只要没有超时或收集会话,或者可能会使会话无效的任何其他标准事项,您的会话将被保留。 ASP和ASP.NET应用程序实际上是独立的应用程序 - 几乎是单独的站点,即使它们位于相同的文件夹结构中 - 恰好在同一服务器上运行。 他们不能共享数据(没有像在数据库中存储东西那样跳过某些环节)并且彼此不了解。 will the S ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)