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 1spJwH-000cib-G3 for pgsql-general@arkaria.postgresql.org; Sat, 14 Sep 2024 03:59:14 +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 1spJwG-002dWE-H1 for pgsql-general@arkaria.postgresql.org; Sat, 14 Sep 2024 03:59:12 +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 1spJwG-002dW5-5c for pgsql-general@lists.postgresql.org; Sat, 14 Sep 2024 03:59:12 +0000 Received: from mail-oo1-xc36.google.com ([2607:f8b0:4864:20::c36]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1spJw9-00146R-J1 for pgsql-general@lists.postgresql.org; Sat, 14 Sep 2024 03:59:10 +0000 Received: by mail-oo1-xc36.google.com with SMTP id 006d021491bc7-5e1cdfe241eso583268eaf.1 for ; Fri, 13 Sep 2024 20:59:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726286344; x=1726891144; 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=ZH+f+LBnjWvCaSP7Egyrv3xurTxrFip8pmJsG4p4e8s=; b=Tyfft3TqEfxOD9ZsCus6cjkO8VSlHkSuEq+buHT4+RFY0xezuwILMJDUPuvY+difG8 epB5fjP1j/ha64T0kDnXJDFH2VnRbmOSSivkddVgJSS3KtTzvsGqfOYrPkPF2IsfiXK6 e+TZS5Hl4WXpjrr7nKqmE3hs8SD9y47IxrwsXQA2ww4ZXU9CIrKqcTJhoOQ3ifrt052c dFFWXFK/CND8yzpX5QUYIK/23EuOmr+jsTgbneW2rwBnUN2RtZzHymaIfCox4lQiKWje CNWKuH4860Zj2a6RKRTTUO2rM9l0qoctUAWgCagnwo4uxKaEVrRYesCdkK+NPWd8pqx2 5kLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726286344; x=1726891144; 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=ZH+f+LBnjWvCaSP7Egyrv3xurTxrFip8pmJsG4p4e8s=; b=gY+79Yer/8O48bf5SofcRiGXR0N9GdtLil72/OJ+2ii+cfXtvHt0UjDf7mz1HKq3gw l08Sgs9m32MRi9hNgnOtnAmUdVoFViIo8olNQN6uFE3EkErx3Gyvme36k7rHccqaJLDL ecPWkkRAWqZ6YgZh/haxkHOi+7T0fs99umPGegPpAQWI1QQ55em4j82tRJrJ9jjDKgt6 3aKDPs8Qy/vtL13UtIbvbrr6pEZRPWPZSsatjfzy9OolMhbv+2PuTroGY5/iGIaFrFeb 8l4yzP1CsHKHb6ctDOKhGIGx1jkKzeWlnBqJcu67B5FT+uaIhjHXuivLbcg0WUnQrTPR bf/A== X-Gm-Message-State: AOJu0YwmCurM+CrQrMlxk+AQeGz+0ihrxcs4DpksGXBn9jVsbTX9y2P2 r0OCQJzrrS5UL7RoASOCZjPIpNP6PaCV+5nbsXl8Px5vVaSKiSyOGAr9CQy55SXPU6YEesKxPvU vvTrZfR6YUvJkVrnVQ2tIR4E2nY7VPA== X-Google-Smtp-Source: AGHT+IFTta2IVG50zF9siQ7oWhPwhSts2kK7dVPOVPXYOHUW0L4D+WJnn9Rb60aZtqAGvrusWGmjjRyUZRoGp8HP9+k= X-Received: by 2002:a05:6870:331f:b0:270:5320:2d6d with SMTP id 586e51a60fabf-27c68c3420fmr2569049fac.47.1726286344271; Fri, 13 Sep 2024 20:59:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: yudhi s Date: Sat, 14 Sep 2024 09:28:52 +0530 Message-ID: Subject: Re: update faster way To: Igor Korot Cc: pgsql-general Content-Type: multipart/alternative; boundary="00000000000054c03006220c5c1c" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000054c03006220c5c1c Content-Type: text/plain; charset="UTF-8" > > > > Do you have any indexes? > If not - you should, if yes - what are they? > > > Yes we have a primary key on this table which is on a UUID type column and also we have other indexes in other timestamp columns . But how is this going to help as we are going to update almost all the rows in the table? --00000000000054c03006220c5c1c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Do you have any indexes?
If not - you should, if yes - what are they?



Yes we have a primary key on this = table which is on a UUID type column and also we have other indexes in othe= r timestamp columns . But how is this going to help as we are going to upda= te=C2=A0almost all the rows in the table?
--00000000000054c03006220c5c1c--