<?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>Forem: Singh Sachina</title>
    <description>The latest articles on Forem by Singh Sachina (@sachin_dev_7c341701a38064).</description>
    <link>https://forem.com/sachin_dev_7c341701a38064</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%2F3407124%2F91989910-5de5-4a3a-a284-e62a6de14736.png</url>
      <title>Forem: Singh Sachina</title>
      <link>https://forem.com/sachin_dev_7c341701a38064</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/sachin_dev_7c341701a38064"/>
    <language>en</language>
    <item>
      <title>Table with the most records in the database. | Database me sabse zyada records wali table</title>
      <dc:creator>Singh Sachina</dc:creator>
      <pubDate>Fri, 12 Dec 2025 06:49:39 +0000</pubDate>
      <link>https://forem.com/sachin_dev_7c341701a38064/table-with-the-most-records-in-the-database-database-me-sabse-zyada-records-wali-table-453o</link>
      <guid>https://forem.com/sachin_dev_7c341701a38064/table-with-the-most-records-in-the-database-database-me-sabse-zyada-records-wali-table-453o</guid>
      <description>&lt;p&gt;SELECT TOP 1&lt;br&gt;
    s.name AS SchemaName,&lt;br&gt;
    t.name AS TableName,&lt;br&gt;
    SUM(p.rows) AS TotalRows&lt;br&gt;
FROM sys.tables t&lt;br&gt;
JOIN sys.schemas s ON t.schema_id = s.schema_id&lt;br&gt;
JOIN sys.partitions p ON t.object_id = p.object_id&lt;br&gt;
WHERE p.index_id IN (0, 1)&lt;br&gt;
GROUP BY s.name, t.name&lt;br&gt;
ORDER BY TotalRows DESC;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Making SQL Queries 100x Faster with One Index</title>
      <dc:creator>Singh Sachina</dc:creator>
      <pubDate>Thu, 13 Nov 2025 10:03:33 +0000</pubDate>
      <link>https://forem.com/sachin_dev_7c341701a38064/making-sql-queries-100x-faster-with-one-index-2f2p</link>
      <guid>https://forem.com/sachin_dev_7c341701a38064/making-sql-queries-100x-faster-with-one-index-2f2p</guid>
      <description>&lt;p&gt;CREATE INDEX IX___NULL&lt;br&gt;
ON  ()&lt;br&gt;
WHERE  IS NULL;&lt;/p&gt;

&lt;p&gt;🔧 Where to put your actual names?&lt;br&gt;
Replace  with your table name&lt;br&gt;
Replace  with the column you want to select&lt;br&gt;
Replace  with the column that contains NULL values&lt;/p&gt;

&lt;p&gt;Creating a filtered index on only the rows where a large column is NULL helps the database avoid a full table scan and makes the query 10x–100x faster.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>database</category>
    </item>
  </channel>
</rss>
