<?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: Abhay Ojha</title>
    <description>The latest articles on Forem by Abhay Ojha (@abojha404).</description>
    <link>https://forem.com/abojha404</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%2F3473872%2Fa3d4b614-f947-4b55-a5bd-9b1c7e56e8fe.jpg</url>
      <title>Forem: Abhay Ojha</title>
      <link>https://forem.com/abojha404</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/abojha404"/>
    <language>en</language>
    <item>
      <title>When scaling broke my system (and it wasn’t a performance issue)</title>
      <dc:creator>Abhay Ojha</dc:creator>
      <pubDate>Fri, 03 Apr 2026 10:40:34 +0000</pubDate>
      <link>https://forem.com/abojha404/when-scaling-broke-my-system-and-it-wasnt-a-performance-issue-5g83</link>
      <guid>https://forem.com/abojha404/when-scaling-broke-my-system-and-it-wasnt-a-performance-issue-5g83</guid>
      <description>&lt;p&gt;Recently, I scaled a system from a small dataset to thousands of files.&lt;/p&gt;

&lt;p&gt;And everything broke.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Storage usage exploded
&lt;/li&gt;
&lt;li&gt;Queries became painfully slow
&lt;/li&gt;
&lt;li&gt;Even simple operations started timing out
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;At first, I assumed it was a performance issue.&lt;/p&gt;

&lt;p&gt;It wasn’t.&lt;/p&gt;

&lt;p&gt;It was an architectural mistake.&lt;/p&gt;




&lt;h2&gt;
  
  
  What went wrong
&lt;/h2&gt;

&lt;p&gt;Without realizing it, I had turned a vector database into a full data storage system.&lt;/p&gt;

&lt;p&gt;Instead of using it just for similarity search,&lt;br&gt;
I was relying on it for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;storing large structured data
&lt;/li&gt;
&lt;li&gt;handling exact queries
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And that’s where things started to fall apart.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;p&gt;Vector databases are great at:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;finding relevant or similar information
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But they are not designed for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;storing large structured datasets
&lt;/li&gt;
&lt;li&gt;handling precise, exact-match queries at scale
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  The fix: a hybrid approach
&lt;/h2&gt;

&lt;p&gt;I changed the system design to separate concerns:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;one layer for semantic search (vector DB)
&lt;/li&gt;
&lt;li&gt;one layer for exact retrieval (traditional database)
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This made the system:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;faster
&lt;/li&gt;
&lt;li&gt;more predictable
&lt;/li&gt;
&lt;li&gt;easier to scale
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Key takeaway
&lt;/h2&gt;

&lt;p&gt;Scaling isn’t just about handling more data.&lt;/p&gt;

&lt;p&gt;It’s about using the right system for the right job.&lt;/p&gt;

&lt;p&gt;Sometimes, the biggest optimization isn’t in the code.&lt;/p&gt;

&lt;p&gt;It’s in the architecture.&lt;/p&gt;

</description>
      <category>systemdesign</category>
      <category>database</category>
      <category>vectordatabase</category>
      <category>ai</category>
    </item>
    <item>
      <title>Small bugs aren’t always about coding</title>
      <dc:creator>Abhay Ojha</dc:creator>
      <pubDate>Fri, 03 Apr 2026 10:31:23 +0000</pubDate>
      <link>https://forem.com/abojha404/small-bugs-arent-always-about-coding-3ph3</link>
      <guid>https://forem.com/abojha404/small-bugs-arent-always-about-coding-3ph3</guid>
      <description>&lt;p&gt;I’ve noticed something interesting while working on bugs.&lt;/p&gt;

&lt;p&gt;Most of the time, the issue isn’t that the code is complex.&lt;/p&gt;

&lt;p&gt;It’s that the requirements were never clear in the first place.&lt;/p&gt;

&lt;p&gt;The logic exists in our head,&lt;br&gt;
but not in the code or documentation.&lt;/p&gt;

&lt;h2&gt;
  
  
  A simple habit that helps
&lt;/h2&gt;

&lt;p&gt;Before jumping into coding, try spending 10 minutes writing things down.&lt;/p&gt;

&lt;p&gt;Just basic points:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What exactly are we building?&lt;/li&gt;
&lt;li&gt;What are the non-goals?&lt;/li&gt;
&lt;li&gt;What does success look like?&lt;/li&gt;
&lt;li&gt;What edge cases might break this?&lt;/li&gt;
&lt;li&gt;How will this be rolled out?&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Why this works
&lt;/h2&gt;

&lt;p&gt;This small step forces clarity early.&lt;/p&gt;

&lt;p&gt;It helps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;catch gaps in understanding
&lt;/li&gt;
&lt;li&gt;reduce back-and-forth during reviews
&lt;/li&gt;
&lt;li&gt;avoid unnecessary debugging later
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Curious to know
&lt;/h2&gt;

&lt;p&gt;Do you usually write things down before coding,&lt;br&gt;
or do you prefer figuring things out while building?&lt;/p&gt;

</description>
      <category>programming</category>
      <category>webdev</category>
      <category>productivity</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
