{"id":21,"date":"2024-06-22T01:53:25","date_gmt":"2024-06-22T01:53:25","guid":{"rendered":"https:\/\/techobjects.net\/?p=21"},"modified":"2024-06-22T01:53:25","modified_gmt":"2024-06-22T01:53:25","slug":"sql-select-issue-timing","status":"publish","type":"post","link":"https:\/\/techobjects.net\/?p=21","title":{"rendered":"SQL &#8211; Select Issue\/ Timing"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Running into SQL query issues can sometimes cause issues. One issue ran into today is that a query which was a simple select, but the &#8220;where&#8221; statement had an &#8220;or&#8221; in it and it wasn&#8217;t wrapped in parenthesis, which caused almost all table records to be returned. This caused the tempdb to fill up.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If a query is taking more than a couple seconds to run generally something is wrong with the query or a missing index and its best to stop execution and review the query for issues.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Running into SQL query issues can sometimes cause issues. One issue ran into today is that a query which was a simple select, but the &#8220;where&#8221; statement had an &#8220;or&#8221; in it and it wasn&#8217;t wrapped in parenthesis, which caused almost all table records to be returned. This caused the tempdb to fill up. If [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[3,8],"class_list":["post-21","post","type-post","status-publish","format-standard","hentry","category-sql","tag-sql","tag-sql-tempdb"],"brizy_media":[],"_links":{"self":[{"href":"https:\/\/techobjects.net\/index.php?rest_route=\/wp\/v2\/posts\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techobjects.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techobjects.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techobjects.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techobjects.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=21"}],"version-history":[{"count":0,"href":"https:\/\/techobjects.net\/index.php?rest_route=\/wp\/v2\/posts\/21\/revisions"}],"wp:attachment":[{"href":"https:\/\/techobjects.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techobjects.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techobjects.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}