Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gB0I6-0007mU-U5 for pgsql-performance@arkaria.postgresql.org; Fri, 12 Oct 2018 16:27:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gB0I5-0005X0-2k for pgsql-performance@arkaria.postgresql.org; Fri, 12 Oct 2018 16:27:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gB0I4-0005Wg-9l for pgsql-performance@lists.postgresql.org; Fri, 12 Oct 2018 16:27:52 +0000 Received: from sonic309-14.consmr.mail.bf2.yahoo.com ([74.6.129.124]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gB0I1-0001F5-G1 for pgsql-performance@lists.postgresql.org; Fri, 12 Oct 2018 16:27:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1539361667; bh=DlhXJFa4E5QArgEoMtT96t4wcCimu/eU0G6B/BRIWsQ=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=C46xnQtnw/MBiP7K+EWmI+XQZpnJ50h1YkBj671SPmZTXoC41UwWtq7tKDA6xKr+DufsglFMdCxRx4VER+XAQsCG/5wLInvChxVxuVw0OZ7HyVyJdWzI7IJPeHWKyBLZFZwd9zlbbGNXSABrzAM/KbKzAWoUySejxjyPtp71tfjb7wq2kWWo4IZzfQWYtQ3z2TbI6/3rRpy4ove6UOhKsJxrc2ALqDWcqNPL2EM/tt1sYgJe2Yt8Aox5bDlsvcgpevpy5mGxgIqFPrlt4Gp0HfLNeC30o9pn8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feYhMIxMc0Cl6EqJd__.WbYZ8YcP_xCxqa8at3DAwGdXsOiH5vmLZ0qu BL8KVAtCiOIob Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.bf2.yahoo.com with HTTP; Fri, 12 Oct 2018 16:27:47 +0000 Date: Fri, 12 Oct 2018 16:27:45 +0000 (UTC) From: "Sam R." Reply-To: "samruohola@yahoo.com" To: "pgsql-performance@lists.postgresql.org" Message-ID: <1288355243.8943320.1539361665724@mail.yahoo.com> In-Reply-To: <4dbb8bea-bea3-74d8-a537-36bb9864cb9f@portavita.eu> References: <4dbb8bea-bea3-74d8-a537-36bb9864cb9f@portavita.eu> Subject: One big table or split data? Writing data. From disk point of view. With a good storage (GBs/s, writing speed) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8943319_527060043.1539361665723" X-Mailer: WebService/1.1.12512 YahooMailAndroidMobile YMobile/1.0 (com.yahoo.mobile.client.android.mail/5.32.1; Android/8.1.0; OPR1.170623.026; B2N_sprout; HMD Global; Nokia 7 plus; 5.71; 2034x1080;) Content-Length: 4522 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_8943319_527060043.1539361665723 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi! Could someone discuss about following? It would be great to hear comments! There is a good storage. According to "fio", write speed could be e.g. 3 GB= /s.=C2=A0(It is First time using the command for me, so I am not certain of= the real speed with "fio". E.g. with --bs=3D100m, direct=3D1, in fio. The = measurement result may be faulty also. So, checking still.) Currently there is one table without partitioning. The table contains json = data. In PostgreSQL, in Linux. Write speed can be e.g. 300 - 600 MB/s, through PostgreSQL. Measured with d= stat while inserting. Shared buffers is large is PostgreSQL. With a storage/disk which "scales", is there some way to write faster to th= e disk in the system through PostgreSQL? Inside same server. Does splitting data help? Partitioned table / splitting to smaller tables? = Should I test it? Change settings somewhere? Block sizes? 8 KB / 16 KB, ... "Dangerous" to ch= ange? 2nd question, sharding: If the storage / "disk" scales, could better *disk writing speed* be achiev= ed (in total) with sharding kind of splitting of data? (Same NAS storage, w= hich scales, in use in all shards.)Sharding or use only one server? From pu= re disk writing speed point of view. BR Sam ------=_Part_8943319_527060043.1539361665723 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi!

Could someone discuss about following? It would be great to hear = comments!

There is a good sto= rage. According to "fio", write speed could be e.g. 3 GB/s.
 (It is First time using th= e command for me, so I am not certain of the real speed with "fio". E.g. wi= th --bs=3D100m, direct=3D1, in fio. The measurement result may be faulty al= so. So, checking still.)

Curr= ently there is one table without partitioning. The table contains json data= . In PostgreSQL, in Linux.

Wr= ite speed can be e.g. 300 - 600 MB/s, through PostgreSQL. Measured with dst= at while inserting. Shared buffers is large is PostgreSQL.

With a storage/disk which "scales", is there = some way to write faster to the disk in the system through PostgreSQL?

Inside same server.

Does splitting data help? Partitioned tab= le / splitting to smaller tables? Should I test it?

Change settings somewhere? Block sizes? 8 KB / 16 KB= , ... "Dangerous" to change?

= 2nd question, sharding:

If th= e storage / "disk" scales, could better *disk writing speed* be achieved (i= n total) with sharding kind of splitting of data? (Same NAS storage, which = scales, in use in all shards.)
Sharding or use only one server? From pure disk writing speed= point of view.
<= br>

BR Sam

------=_Part_8943319_527060043.1539361665723--