<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Posts tagged #database</title><description>All posts tagged with database on queen.raae.codes</description><link>https://queen.raae.codes/tag/database/</link><item><title>⁉️ ⁉️ ~ Why not go for the simple solution?</title><link>https://queen.raae.codes/2022-10-20-simple-solutions/</link><guid isPermaLink="true">https://queen.raae.codes/2022-10-20-simple-solutions/</guid><description>Last week on Slow&amp;Steady, the podcast where we build products in public, we talked about how the simple solution is often the right solution. And this week, I…</description><pubDate>Thu, 20 Oct 2022 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Last week on Slow&amp;amp;Steady, the podcast where we build products in public, &lt;a href=&quot;https://twitter.com/SlowSteadyPod/status/1582627389950988288?s=20&amp;amp;t=frrX5_RPqFJmSR-UvMm-5A&quot;&gt;we talked about how the simple solution is often the right solution&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/SlowSteadyPod/status/1582627389950988288?s=20&amp;amp;t=frrX5_RPqFJmSR-UvMm-5A&quot;&gt;&lt;img src=&quot;./twitter.com_SlowSteadyPod.jpg&quot; alt=&quot;Screenshot of audiogram tweet&quot;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And this week, I realized the denormalization I was doing for Prune your Follows is not really needed. No worries if the Twitter account info repeats for each app user following that account.&lt;/p&gt;
&lt;p&gt;&amp;lt;aside class=&amp;quot;notice&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;Prune your Follows lets you import and filter everyone you follow on Twitter to find accounts to unfollow.&lt;/p&gt;
&lt;p&gt;&amp;lt;/aside&amp;gt;&lt;/p&gt;
&lt;p&gt;So instead of two tables:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;account
  - id
  - username
  - name
  - a lot more

follows
  - account
  - followed_by
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;we can go with one table:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;account
  - id
  - username
  - name
  - followed_by
  - a lot more
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;By doing it the denormalized way, we skip all kinds of complexity that comes with joining tables. For instance, it made it much easier to add the search functionality we created on &lt;a href=&quot;https://youtu.be/Xr-s0Hg_45w&quot;&gt;tonight&apos;s treasure hunt&lt;/a&gt; for instance.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;All the best,&lt;br&gt;
Queen Raae&lt;/p&gt;
</content:encoded></item></channel></rss>