Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iEmbk-0004px-L5 for pgsql-general@arkaria.postgresql.org; Mon, 30 Sep 2019 03:44:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iEmbj-00074d-GW for pgsql-general@arkaria.postgresql.org; Mon, 30 Sep 2019 03:44:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iEmbj-00074R-1s for pgsql-general@lists.postgresql.org; Mon, 30 Sep 2019 03:44:19 +0000 Received: from mail-oi1-x230.google.com ([2607:f8b0:4864:20::230]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iEmbg-0003se-Rb for pgsql-general@lists.postgresql.org; Mon, 30 Sep 2019 03:44:17 +0000 Received: by mail-oi1-x230.google.com with SMTP id w17so9874803oiw.8 for ; Sun, 29 Sep 2019 20:44:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=1u9xlHznDWzPUdIGFHdrT0V8/cS8SnYiNa86GCLmDM0=; b=vCI4ZuqeT9Hjr3PME7D51yPNqsG1kcpUGdQY1Hmac9jJQ1lKE+mPtHyztyQLU65Wsk juZ6DS2Mvi2Plrt5sZhG36XG56L8dgzs5ND1MgSs/a3Z2yPdYUm2x5e+eRf1BwNYS8OY lFqAunt7+Qbq+wqCuZ1/NTIZXniXdfqo0IuczOmurpEI8FVTf4Ch5J/9NWCQ5HVPoZho kZM0sz+3OuONGum3UaO1txW3rhCDfvPMw0jJ+aPmZuitrerDjZQxhJesBE8+nMflbacu qi1lYMnWf3KHj1ozgyJvhbHsa/tYEoOg5HD/adPiPexU5ryxkaufUYh2xFE/8PaoHTox pYBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=1u9xlHznDWzPUdIGFHdrT0V8/cS8SnYiNa86GCLmDM0=; b=rXKZjVIlNiPY1l6ccl31JRncSnNkoKwoIjZeDbTQhWVY9IKy1mVc+aoDl6sboFpgZB VE2sEkKtRcuL5Ytv1PpnJohfSZrb5ufgKKcoY66qdsYi64lwl13FIRJit09kx9/4b4ic lDY6aPZ21rxogJv3MXvL7Y+qs6wcjk7eNRwDx/bYBka0eqYLsUVdyaE72kEuHagSrRCw cVuxYdEwyNZavtrR6AE6DTA4CjHIuHu2UtQVpuP2+PJTGdJw/W7+06me6/Gy/k11+GA/ s5gbW/R5F1SCpwNRUzVbQJ0G8rsoMY5gG0T2coINN33236TK6/QYpOSu5c1NaTeO7SwJ fl/g== X-Gm-Message-State: APjAAAWIaHYf75rJJo1GgYQL0543YxBlr/5TsIAQwlUthyPa9Nckq112 rESpyVm37/Rv//zyoUEuRI/Vz2N0DQ8= X-Google-Smtp-Source: APXvYqzSRqhZVRI4HMCNd43gZ3paJucvVLmq20RSUcMXlbKyQQHt4jJXMpk0ZFd+S6qolrJ1GUYc+A== X-Received: by 2002:aca:5cc3:: with SMTP id q186mr15161614oib.123.1569815055804; Sun, 29 Sep 2019 20:44:15 -0700 (PDT) Received: from [192.168.1.10] (ip70-186-126-197.no.no.cox.net. [70.186.126.197]) by smtp.googlemail.com with ESMTPSA id q14sm3300207otc.50.2019.09.29.20.44.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Sep 2019 20:44:15 -0700 (PDT) Subject: Re: Redis 16 times faster than Postgres? To: pgsql-general@lists.postgresql.org References: <20190929210952.754467a7@mydesk.domain.cxm> From: Ron Message-ID: Date: Sun, 29 Sep 2019 22:44:13 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190929210952.754467a7@mydesk.domain.cxm> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/29/19 8:09 PM, Steve Litt wrote: > On Mon, 30 Sep 2019 07:46:14 +1000 > Nathan Woodrow wrote: > >> Redis is a in memory database so I would except it to be always much >> faster.. > Is there a way to have Redis periodically update an on-disk backup? > That would be great, but otherwise you're at the mercy of your power > company (here in Central Florida it's routine for power to go down and > stay down for five hours). It would be criminal for it not to have an async writer process flushing modified pages to disk.  And to not have a UPS that you've tested. -- Angular momentum makes the world go 'round.