<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: stackOverflowed</title>
    <description>The latest articles on DEV Community by stackOverflowed (@soverflowed).</description>
    <link>https://dev.to/soverflowed</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F155427%2Fafec3d7c-e81a-4aa1-bb22-9caa8d7e8eb3.jpg</url>
      <title>DEV Community: stackOverflowed</title>
      <link>https://dev.to/soverflowed</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/soverflowed"/>
    <language>en</language>
    <item>
      <title>What happens when you submit a query ?</title>
      <dc:creator>stackOverflowed</dc:creator>
      <pubDate>Thu, 01 Aug 2019 19:31:06 +0000</pubDate>
      <link>https://dev.to/soverflowed/what-happens-when-you-submit-a-query-3e96</link>
      <guid>https://dev.to/soverflowed/what-happens-when-you-submit-a-query-3e96</guid>
      <description>&lt;p&gt;If you have some experience working with databases, you may certainly used several SQL commands. Have you wondered what happens when a query is submitted? How does the query optimizer work ?&lt;/p&gt;

&lt;p&gt;When a query is submitted to a SQL Server, a number of processes on the server are set into motion. &lt;/p&gt;

&lt;p&gt;However, primarily it focuses on 2 stages:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Relational engine processes.&lt;/li&gt;
&lt;li&gt;Storage engine processes. &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In a RDBMS, in the first stage of the process, a query is parsed and then processed by the query optimizer, which generates an execution plan. The execution plan which is in binary format, is sent to the storage engine. &lt;/p&gt;

&lt;p&gt;The storage engine then uses that plan as a basis to retrieve or modify the underlying data. The storage engine is where processes such as locking, index maintenance and transactions occur.&lt;/p&gt;

&lt;p&gt;That's pretty much the gist of it. &lt;/p&gt;

</description>
      <category>mssqlserver</category>
      <category>rdbms</category>
    </item>
  </channel>
</rss>
