<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>databases on S Anand</title>
    <link>https://www.s-anand.net/blog/tag/databases/</link>
    <description>Recent content in databases on S Anand</description>
    <generator>Hugo -- 0.156.0</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 04 Feb 2026 19:22:13 +0800</lastBuildDate>
    <atom:link href="https://www.s-anand.net/blog/tag/databases/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>RIP, Data Engineers</title>
      <link>https://www.s-anand.net/blog/rip-data-engineers/</link>
      <pubDate>Wed, 04 Feb 2026 19:22:13 +0800</pubDate>
      <guid>https://www.s-anand.net/blog/rip-data-engineers/</guid>
      <description>&lt;p&gt;As AI marches along, another role at risk is the data engineer / database administrator.&lt;/p&gt;
&lt;p&gt;(&lt;a href=&#34;https://sanand0.github.io/talks/2025-08-21-rip-data-scientists/&#34;&gt;Data scientists&lt;/a&gt; are already feeling the heat.)&lt;/p&gt;
&lt;p&gt;A common task for data engineers is to analyze SQL queries - to optimize and standardize.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://github.com/pavankumart18/&#34;&gt;Pavan&lt;/a&gt; used &lt;a href=&#34;https://antigravity.google/&#34;&gt;Antigravity&lt;/a&gt; to analyze 1,500 SQL queries and found:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;30% of queries are purely headcount / volume related. Much more than revenue (25%) or engagement (15%). That&amp;rsquo;s sign of a &lt;strong&gt;tactical culture&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;70% of the queries are about &lt;em&gt;What happened yesterday?&lt;/em&gt; rather than &lt;em&gt;What will happen tomorrow?&lt;/em&gt; - again, &lt;strong&gt;tactical culture&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a href=&#34;https://pavankumart18.github.io/sql-analysis/&#34;&gt;Here&amp;rsquo;s the analysis.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As a next step, he built a &amp;ldquo;Middle Layer&amp;rdquo; - intermediate tables that standardize and optimize queries. Instead of 50 fragile tables, the user can query just 3 robust tables that cover 98% of the SQL queries.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A &lt;code&gt;net_revenue&lt;/code&gt; field that standardizes net revenue after adjustments, i.e. &lt;code&gt;SUM(face_value - discount)&lt;/code&gt;, which is used in 58% of queries. That ensures that Finance (which used to see the GAAP Revenue) and Sales (which used to see the Booked Revenue) are now aligned.&lt;/li&gt;
&lt;li&gt;A &lt;code&gt;tickets_sold&lt;/code&gt; field that standardizes distinct count of tickets sold, used in 85% of queries, and is a slow computation.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;NOTE: Season ticket buyers often bought merchandise as guests (for convenience). Marketing saw these as new customers and spammed them - annoying VIP customers. This standardization created an identity graph - so they can offer discounts instead.&lt;/p&gt;
&lt;p&gt;The process, which Antigravity figured out mostly by itself, was to parse the SQL into an abstract syntax tree (AST), extract a set of features, map them into clusters (archetypes), and analyze them to create the middle layer tables.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://pavankumart18.github.io/sql-analysis/&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://files.s-anand.net/images/2026-02-04-sql-analysis-feature-table.webp&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;SQL queries can reveal organizational culture and misalignment - which is cool! But also:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;This took a few hours.&lt;/li&gt;
&lt;li&gt;Pavan has no data engineering experience.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;RIP, Data Engineers.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Searching the invisible web</title>
      <link>https://www.s-anand.net/blog/searching-the-invisible-web/</link>
      <pubDate>Thu, 31 Mar 2005 12:00:00 +0000</pubDate>
      <guid>https://www.s-anand.net/blog/searching-the-invisible-web/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;http://library.rider.edu/scholarly/rlackie/Invisible/Inv_Web_Main.html&#34;&gt;Searching the invisible web&lt;/a&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;comments&#34;&gt;Comments&lt;/h2&gt;
&lt;!-- wp-comments-start --&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;S Anand&lt;/strong&gt; &lt;em&gt;11 Apr 2005 3:42 am&lt;/em&gt;:
More &lt;a href=&#34;http://www.ala.org/ala/lita/litaresources/toolkitforexpert/toolkitexpert.htm&#34;&gt;here&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;!-- wp-comments-end --&gt;
</description>
    </item>
    <item>
      <title>What does your name mean</title>
      <link>https://www.s-anand.net/blog/what-does-your-name-mean/</link>
      <pubDate>Mon, 15 Oct 2001 12:00:00 +0000</pubDate>
      <guid>https://www.s-anand.net/blog/what-does-your-name-mean/</guid>
      <description>&lt;p&gt;What does your &lt;a href=&#34;http://www.behindthename.com/&#34;&gt;name mean&lt;/a&gt;? More info about &lt;a href=&#34;http://www.eponym.org/asiapage.html&#34;&gt;asian names&lt;/a&gt;.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>PR on the Internet</title>
      <link>https://www.s-anand.net/blog/pr-on-the-internet/</link>
      <pubDate>Sat, 12 Aug 2000 12:00:00 +0000</pubDate>
      <guid>https://www.s-anand.net/blog/pr-on-the-internet/</guid>
      <description>&lt;p&gt;While hunting for some stuff on public relations on the Internet, I found &lt;a href=&#34;http://saturn.vcu.edu/~jcsouth/library/workshops/pubrelat.html&#34;&gt;10 ways public relations specialists can use the Internet&lt;/a&gt;. Actually, the links are useful to anyone doing any news research. &lt;a href=&#34;http://whatsnextonline.com/wno/newsletter27.html&#34;&gt;What&amp;rsquo;s Next Online, 12th July&lt;/a&gt; has a good writeup on how to research online. I did find some good Internet PR related links too on &lt;a href=&#34;http://publicrelations.about.com/careers/publicrelations/msub9.htm&#34;&gt;About.com&lt;/a&gt;, &lt;a href=&#34;http://www.connectingonline.com/articles/prplan.html&#34;&gt;Connecting Online&lt;/a&gt; and &lt;a href=&#34;http://www.impulse-research.com/resource.html&#34;&gt;Impulse Research&lt;/a&gt;.&lt;/p&gt;
</description>
    </item>
  </channel>
</rss>
