Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aHaek-00063M-2D for pgsql-performance@arkaria.postgresql.org; Fri, 08 Jan 2016 17:16:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aHaej-0007vj-Fi for pgsql-performance@arkaria.postgresql.org; Fri, 08 Jan 2016 17:16:53 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aHaei-0007vG-Ib for pgsql-performance@postgresql.org; Fri, 08 Jan 2016 17:16:52 +0000 Received: from 8.mo2.mail-out.ovh.net ([188.165.52.147]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aHaeX-0003ST-EP for pgsql-performance@postgresql.org; Fri, 08 Jan 2016 17:16:51 +0000 Received: from mail135.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo2.mail-out.ovh.net (Postfix) with SMTP id 5C61FFFBB3C for ; Fri, 8 Jan 2016 18:16:39 +0100 (CET) Received: from localhost (HELO queueout) (127.0.0.1) by localhost with SMTP; 8 Jan 2016 19:16:38 +0200 Received: from unknown (HELO ?192.168.0.114?) (mark@allaroundtheworld.fr@88.253.62.92) by ns0.ovh.net with SMTP; 8 Jan 2016 19:16:36 +0200 Subject: Re: How we made Postgres upserts 2-3* quicker than MongoDB To: Nicolas Paris References: <568FE5D0.9040901@allaroundtheworld.fr> Cc: pgsql-performance From: Mark Zealey Message-ID: <568FEEF2.2030603@allaroundtheworld.fr> Date: Fri, 8 Jan 2016 19:16:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Ovh-Tracer-Id: 17218105801601137713 X-Ovh-Remote: 88.253.62.92 () X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: 0 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekiedrjeehucetufdoteggodftvfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecu X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekiedrjeehgdelkecutefuodetggdotffvucfrrhhofhhilhgvmecuqfggjfenuceurghilhhouhhtmecufedttdenuc X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On 08/01/16 19:07, Nicolas Paris wrote: > Hello Mark, > > As far as I know, MongoDB is able to get better writing performances > thanks to scaling (easy to manage sharding). Postgresql cannot (is not > designed for - complicated). > Why comparing postgresql & mongoDB performances on a standalone > instance since mongoDB is not really designed for that ? Yes you can get better performance with mongo via the sharding route but there are a number of quite bad downsides to mongo sharding - limited ability to perform aggregation, loss of unique key constraints other than the shard key, requires at minimum 4-6* the hardware (2 replicas for each block = 4 + 2 * mongos gateway servers)... Actually pretty similar to the issues you see when trying to scale a RDBMS via sharding... We tried doing some mongo sharding and the result was a massive drop in write performance so we gave up pretty quickly... Mark -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance