Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tNBiz-009AX2-Kd for pgsql-admin@arkaria.postgresql.org; Mon, 16 Dec 2024 14:05:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tNBix-0074Ra-63 for pgsql-admin@arkaria.postgresql.org; Mon, 16 Dec 2024 14:05:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tNBiw-0074RS-Qf for pgsql-admin@lists.postgresql.org; Mon, 16 Dec 2024 14:05:28 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tNBiv-00385C-DQ for pgsql-admin@lists.postgresql.org; Mon, 16 Dec 2024 14:05:26 +0000 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-aa5f1909d6fso700752566b.3 for ; Mon, 16 Dec 2024 06:05:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734357924; x=1734962724; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=YpvsYMcI5ev/8khGKd4EPpc/DSlnDBDx4H4VegcJTew=; b=ODbWvuGypkDQUBaZEx+FlZyuCY9eUijChDXPqSN/H4aGypyVZVyxCOsG+pzsggBPck BkTuowKIXqND9cYURyW7msSDh2SfJdD79pWDNFFRqMAbNfQzN76BRiIfTJgfihYu1wJv 7TV8UA72qM7ChE3lYuACnHipnTW5XWhxhv0fd3G6vVUJCQ1CffFhN2LRoqTUYqZIBJPt XuuKM4mtzqL7EC4Um7DY1WMy1RTtP1RSRDpDXrZsBZ4RP/Y0T8ZdLRYgifA/tiVnLdFC lG1SJq6XSAb1Tz1lajY94ze8ulKQZXs2vuX4SUvUWGA/IO0teTpiYx8RwUDh9I8Y1UfC y+Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734357924; x=1734962724; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YpvsYMcI5ev/8khGKd4EPpc/DSlnDBDx4H4VegcJTew=; b=iYWjpJiJ7iIqYG9tesAKS717GqjxVedFI9QfPSlTvP+hEL1r9t4+8MFBrgPfYlhJqs WG4Avgl/aunjZMNDu7lp0WPQDbUq5GGNboPnFjxLS3GkwW/xtqhz+Mew3pXf4eCZVnfZ mDTdbEB/7v2m8F40JuYXVhP0qXnTwaizx59NgjTu9aTDxFP0KLwnVPaMwQ0HcTeTcMXw O2pCiQi3lTfa8EJQLmhihZicw489W/BH7sGlgsyOXNuTD7qfoJBAl32sm09KYNzuG/FG lbeslzepX8yRvKWyIoZDfQptYkx6+aDIvXaq7ehndPD++8HVGHWCN75UvVSSq2NjPwn0 LGoQ== X-Gm-Message-State: AOJu0YyShoBfLUDImFEa9QB2pFOWhm3fK4I7rMzVpqBhXQjUKp9CVQ/o kmjD5zVgGgmX+D7+uYne8jDu99fpUAdJut3OAa8IR869YPGZhhL8sG3erwcfMu3zggNem+7xJgi TZENipTmHjuMEri4v9hvPC4SI+fc= X-Gm-Gg: ASbGnct7hriessxBC+FR0MBTfeea6kWbXN7v+H5KfW6YkVHYD9ICwY++fpXgUTJClfW NyvYIJUABd4qT0pjnI+MplgnFwp2KlvLsuNOlt/G2SmlMe8x0ThLgtCD/a9QvR7qnpzWZhjU= X-Google-Smtp-Source: AGHT+IGyLDZ8bxHBjUSDdLN0uzLL5JPMVRc2wiSDQQcSHEq6R+wsvav+pKYlcDGsUkPIVAsXSu4wL5NM3eOdzipi0YY= X-Received: by 2002:a17:907:d24:b0:aa6:87e8:1d08 with SMTP id a640c23a62f3a-aab778dfec3mr862115066b.8.1734357923486; Mon, 16 Dec 2024 06:05:23 -0800 (PST) MIME-Version: 1.0 References: <0137F599-5558-4B33-9533-94D9E28B7CC2@icloud.com> In-Reply-To: <0137F599-5558-4B33-9533-94D9E28B7CC2@icloud.com> From: Anex Hul Date: Mon, 16 Dec 2024 08:05:12 -0600 Message-ID: Subject: Re: Performance To: Rui DeSousa Cc: pgsql-admin@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000f16ba4062963ab28" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000f16ba4062963ab28 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you all for your response. Show quoted text 1. What version of PG is it? ("SELECT VERSION();" should tell you.) PG Version 16 2. Are you truncating the table after each test run, or deleting all records, or appending? created new schema for each run. 3. Is the blob data stored in BYTEA column data, or are you using the (discouraged) "Large Objects"? Blob storage 4. How are you loading the blob data? used the Import data using a COPY statement, followed this doc https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-u= se-pg-azure-storage?tabs=3Dportal-01%2Cportal-02%2Cportal-03%2Cportal-04%2C= portal-05 On Sun, Dec 15, 2024, 10:22=E2=80=AFPM Rui DeSousa = wrote: > > > > On Dec 15, 2024, at 8:22 PM, Anex Hul wrote: > > > > Hello everyone, > > > > Testing 100 million records data import from Azure blob storage to Azur= e > postgresql. I did run the test 5 times and the time it took keep increasi= ng > for each run. > > Is there know justification for this linear increment of the time it > took for same size of data? > > Check you I/O quotas; you might have hit quota limits and being throttled= . --000000000000f16ba4062963ab28 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Thank you all for your response.

Show quoted text
1. What version of PG is it?=C2=A0 ("SELECT VERSION();" should te= ll you.)

PG Version 16

2. Are you truncating the table after each test run, or dele= ting all records, or appending?

created new schema for each run.

3. Is the blob data stored in BYTEA column data, or are you = using the (discouraged) "Large Objects"?

Blob storage

4. How are you loading the blob data?

used the Import data using a COPY statement, followed this d= oc

https://learn.microsoft.com/en-us/azur= e/postgresql/flexible-server/how-to-use-pg-azure-storage?tabs=3Dportal-01%2= Cportal-02%2Cportal-03%2Cportal-04%2Cportal-05


On Sun, Dec 15, 2024, 10:22=E2=80=AFPM Rui DeSousa <rui.desousa@icloud.com> wrote:=


> On Dec 15, 2024, at 8:22 PM, Anex Hul <anexsql2014@gmail.com= > wrote:
>
> Hello everyone,
>
> Testing 100 million records data import from Azure blob storage to Azu= re postgresql. I did run the test 5 times and the time it took keep increas= ing for each run.
> Is there know justification for this linear increment of the time it t= ook for same size of data?

Check you I/O quotas; you might have hit quota limits and being throttled.<= /blockquote>
--000000000000f16ba4062963ab28--