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 1kQHhA-0001fg-8j for pgsql-general@arkaria.postgresql.org; Wed, 07 Oct 2020 22:14:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kQHh9-0001WP-7t for pgsql-general@arkaria.postgresql.org; Wed, 07 Oct 2020 22:13:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kQHh9-0001WI-0M for pgsql-general@lists.postgresql.org; Wed, 07 Oct 2020 22:13:59 +0000 Received: from ook.raf.org ([2402:1f00:8100:400::31]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kQHh6-0006CP-IP for pgsql-general@lists.postgresql.org; Wed, 07 Oct 2020 22:13:58 +0000 Received: from localhost (localhost [127.0.0.1]) by ook.raf.org (Postfix) with ESMTP id 84DC55DE37; Thu, 8 Oct 2020 09:13:51 +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 s7X3pH2n3P0t; Thu, 8 Oct 2020 09:13:51 +1100 (AEDT) Received: by ook.raf.org (Postfix, from userid 1001) id 165605DEAC; Thu, 8 Oct 2020 09:13:51 +1100 (AEDT) Date: Thu, 8 Oct 2020 09:13:51 +1100 From: raf To: pgsql-general@lists.postgresql.org Cc: Dmitry Igrishin Subject: Re: Which is the setup with lowest resources you know Postgres is used in? Message-ID: <20201007221351.t4rdtqh7mfrh4ake@raf.org> References: <63892727.20201007095054@am-soft.de> <20201007211440.kmzqb4wmknv2ww3q@raf.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Oct 08, 2020 at 01:14:02AM +0300, Dmitry Igrishin wrote: > чт, 8 окт. 2020 г. в 00:14, raf : > > > > 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. > > As for now SQLite is a very robust solution if used properly. That's great to hear.