Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kQGlu-00082w-R1 for pgsql-general@arkaria.postgresql.org; Wed, 07 Oct 2020 21:14:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kQGlt-0001bX-OV for pgsql-general@arkaria.postgresql.org; Wed, 07 Oct 2020 21:14:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kQGlt-0001bQ-Fl for pgsql-general@lists.postgresql.org; Wed, 07 Oct 2020 21:14:49 +0000 Received: from ook.raf.org ([2402:1f00:8100:400::31]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kQGlr-0006oG-6O for pgsql-general@lists.postgresql.org; Wed, 07 Oct 2020 21:14:49 +0000 Received: from localhost (localhost [127.0.0.1]) by ook.raf.org (Postfix) with ESMTP id 2D3905DE37 for ; Thu, 8 Oct 2020 08:14:41 +1100 (AEDT) X-Virus-Scanned: Debian amavisd-new at ook.raf.org Received: from ook.raf.org ([127.0.0.1]) by localhost (ook.raf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1RXEHF06f2Er for ; Thu, 8 Oct 2020 08:14:40 +1100 (AEDT) Received: by ook.raf.org (Postfix, from userid 1001) id E059A5DEAC; Thu, 8 Oct 2020 08:14:40 +1100 (AEDT) Date: Thu, 8 Oct 2020 08:14:40 +1100 From: raf To: pgsql-general@lists.postgresql.org Subject: Re: Which is the setup with lowest resources you know Postgres is used in? Message-ID: <20201007211440.kmzqb4wmknv2ww3q@raf.org> References: <63892727.20201007095054@am-soft.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Oct 07, 2020 at 01:53:44PM +0300, Dmitry Igrishin wrote: > In many cases concurrency is not a problem and in fact SQLite may > handle concurrent requests faster than Postgres. Since SQLite is > server-less and access overhead is near to zero (compared to Postgres) > each writer does its work quickly and no lock lasts for more than a > few dozen milliseconds. > On the other hand, Postgres is better in cases of really high concurrency. Presumably, this is no longer a problem, but many years ago (between 14 and 10 years ago) I was using sqlite for a low traffic website (probably no more than 40 users at a time), and the database became corrupted so often that I had had to automate rebuilding it from the latest backup and my own sql logs. I was very silly. Switching to postgres was the real solution. cheers, raf