# SQLite or PostgreSQL? It's Complicated!

**URL:** <https://community.tmpdir.org/t/sqlite-or-postgresql-its-complicated/548>\
**Category:** Software\
**Tags:** postgres, sqlite, database\
**Created:** [June 30, 2022, 6:59pm UTC](https://community.tmpdir.org/t/sqlite-or-postgresql-its-complicated/548 "2022-06-30T18:59:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbrake](https://community.tmpdir.org/user_avatar/community.tmpdir.org/cbrake/32/3_2.png) [@cbrake](https://community.tmpdir.org/u/cbrake)\
**Post date:** [June 30, 2022, 6:59pm UTC](https://community.tmpdir.org/t/sqlite-or-postgresql-its-complicated/548/1 "2022-06-30T18:59:24Z")

</div>

> **[SQLite or PostgreSQL? It's Complicated!](https://www.twilio.com/blog/sqlite-postgresql-complicated)**
>
> Learn how to benchmark SQLite and PostgreSQL databases.

---

<div class="post-metadata">

**Author:** ![bradfa](https://community.tmpdir.org/user_avatar/community.tmpdir.org/bradfa/32/85_2.png) [@bradfa](https://community.tmpdir.org/u/bradfa)\
**Post date:** [July 6, 2022, 10:17am UTC](https://community.tmpdir.org/t/sqlite-or-postgresql-its-complicated/548/2 "2022-07-06T10:17:22Z")

</div>

The conclusion is a bit frustrating, even stating “Without throwing additional money at the problem…” because taking the time to learn enough and then to execute such tests surely cost significantly more than simply upgrading the server from what sounds like Linode’s lowest offering to something slightly more powerful. This article was clearly written to make a point, not to actually be a good business move: which is fine, just it’s not what younger engineers should be emulating.

I’ve seen lots of things like this lately in articles and youtube videos. Here’s a problem, here’s how I benchmarked it, here’s what I decided to do. But never do they explain that the economics of doing it this way are completely wrong for most business situations (it’s fine for hobby work, however).

Optimizing the solution you already have, or throwing a small amount of money at a problem, is often the right move for a business. Doubling the RAM and vCPU of the Linode VPS would cost a total of $30/month, for a blog which appears to be a big part of Twilio’s marketing operation. Linode don’t even sell new customers the size of VPS as the author uses. Or reorganizing how the data is stored within the database, which doesn’t even seem to be touched on, but in my understanding can have a significant impact on query performance.

---

<div class="post-metadata">

**Author:** ![cbrake](https://community.tmpdir.org/user_avatar/community.tmpdir.org/cbrake/32/3_2.png) [@cbrake](https://community.tmpdir.org/u/cbrake)\
**Post date:** [July 6, 2022, 12:34pm UTC](https://community.tmpdir.org/t/sqlite-or-postgresql-its-complicated/548/3 "2022-07-06T12:34:38Z")

</div>

Very true – doubling the size of a VPS is a great way to get more performance fast, and for most business operations, cost is not a big consideration. The business considerations are left out of many discussions and is a useful perspective – thanks for contributing.
