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 1gXD7z-0001GF-Hr for pgsql-performance@arkaria.postgresql.org; Wed, 12 Dec 2018 22:37:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gXD7x-0005Vb-OM for pgsql-performance@arkaria.postgresql.org; Wed, 12 Dec 2018 22:37:13 +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 1gXD7w-0005VM-QE for pgsql-performance@lists.postgresql.org; Wed, 12 Dec 2018 22:37:13 +0000 Received: from mx1.riseup.net ([198.252.153.129]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gXD7p-0001XN-7M for pgsql-performance@postgresql.org; Wed, 12 Dec 2018 22:37:10 +0000 Received: from cotinga.riseup.net (cotinga-pn.riseup.net [10.0.1.164]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 995EE1A330D for ; Wed, 12 Dec 2018 14:37:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1544654223; bh=v/3i0+MahjOCxlbBpkBoTO38ScGImkQg/CMNTjt+a90=; h=Date:From:To:Subject:References:In-Reply-To:From; b=tNUUJwElweNH1FnmuLaQZPSQgYkuH7DdSJlAL57lTPopjXVfj8HhMKK9yMg4PZZib +AOA9ejxfwsNWRYnBHeWWUqKbTNzuXghIeJuxhvUJk6Ir1vmyipnSVd1tbby8vb52W yO0ryWyVOLL08WCK0uumh0m8eP/2Er2rdxASToKg= X-Riseup-User-ID: A8EF8B8BCF742BC1A6833C765FC954513F70190AFE2DBCBBD812E0EE8E10E969 Received: from [127.0.0.1] (localhost [127.0.0.1]) by cotinga.riseup.net with ESMTPSA id EEAFFEA8B5 for ; Wed, 12 Dec 2018 14:37:02 -0800 (PST) Date: Wed, 12 Dec 2018 23:37:00 +0100 From: Nicolas Paris To: pgsql-performance@postgresql.org Subject: Re: PostgreSQL VS MongoDB: a use case comparison Message-ID: <20181212223435.6ztr43afpmxngk3g@riseup.net> Mail-Followup-To: pgsql-performance@postgresql.org References: <20181119172609.GR3415@tamriel.snowman.net> <20181120133420.GA3415@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181120133420.GA3415@tamriel.snowman.net> Priority: normal List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Nov 20, 2018 at 08:34:20AM -0500, Stephen Frost wrote: > > Anyway, to bring data from JSON to a relational model is out of topic > > for the current discussion, since we are actually questioning if > > Postgres is a good replacement for Mongo when handling JSON data. > > This narrow viewpoint isn't really sensible though- what you should be > thinking about is what's appropriate for your *data*. JSON is just a > data format, and while it's alright as a system inter-exchange format, > it's rather terrible as a storage format. I would add that *FHIR* is an inter-exchange format instead of a storage format. FHIR spec evolves and its json format too. When implemented in a relational format it allows to only change the serialization process (eg: json_tuple & co) instead of the data. In case FHIR is stored as a json, it makes the information frozen in its version and complicate to make evolve. -- nicolas