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 1tPptl-00FhO6-ND for pgsql-general@arkaria.postgresql.org; Mon, 23 Dec 2024 21:23:34 +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 1tPptk-00GFNf-Ur for pgsql-general@arkaria.postgresql.org; Mon, 23 Dec 2024 21:23:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tPptk-00GFNX-JG for pgsql-general@lists.postgresql.org; Mon, 23 Dec 2024 21:23:32 +0000 Received: from mail-io1-xd34.google.com ([2607:f8b0:4864:20::d34]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tPpth-001Hjd-Nk for pgsql-general@postgresql.org; Mon, 23 Dec 2024 21:23:31 +0000 Received: by mail-io1-xd34.google.com with SMTP id ca18e2360f4ac-844e161a957so362873239f.0 for ; Mon, 23 Dec 2024 13:23:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734989008; x=1735593808; darn=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=M4oAfenE3rTf78ZmbUSCNL3sRHU0SCAor9LRH+OZ8sM=; b=ERqQdE3sOTyG+rSxyobq2Z4/UZIw8+t6s0FKVvvi6b7t/ch9oxGLlugOKLketkTRQP 6fTM5gMu1WEDHYcOLp6cm8eO1Z5lefdJavMp/hHrf15lM888X3dCzF6T0+ajPotLlRPh 1nW8e62Xmlds0Tr/pR4JLUjW4Yah+4v+FIRVrmiBdvD87BG0yaP0blvUO0SDzT5ian6u bzYmrWsUJSXJ8nITwe/PtMBy5yhMLfhagAg3KpYTsYU9QPaAnk7ArfQ/sKYysOpcBfTm 1It4moc/WVjKsfQFBxoxIcS/zCLELwKVLSz3ASYnQv/2xSJzttlFaSE1tXNgT+vuorqE lyVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734989008; x=1735593808; 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=M4oAfenE3rTf78ZmbUSCNL3sRHU0SCAor9LRH+OZ8sM=; b=eojEZRwqtEyc88U4xM2FdPKQTnXxc6rxEs66KskLHQEsjn8tsrUMkO5Q6gRXYijoGf TmzS5CSJjcmq0C6avV+GrYXooUtJoF+iHZXLDTBdGlvUs/ZOEJMgojRXmTN3IKiuYSv3 NGcb9N6Dxk4REsOtFEdZKkEgulQwFKwG+lwFh1Esxpyc28ts6kskQ3Apv130CV/QImii rr6RQntOrPUivx6ey1dfa/gfU5Xq1ADs9xVzPbnSDSdCytYylBdnGMB+J1ZXu8zqocxZ eoP5SHbb77zav0w3z/hbmddMHwVIemKid2hvI7N7Z4WqKA8QKAhkb4/zJt5uP4uiFJuX lP4Q== X-Forwarded-Encrypted: i=1; AJvYcCXMoICRsOBLhh5JkgsV4hio9grq+8Cc7ecKegDKLU2ZuXozZffek8LyxGk6fSlr/8ou2zcAemy83FwvwiKv@postgresql.org X-Gm-Message-State: AOJu0YzIFGcU80mA8nWIVLOTzklMdAvqSMXh9bmsLRVRkwUD4Mj9h0mS M+WGePTLLNqgavMdSSE3Og0olq3PuM1SvEMLL313Nyqj9XmKC7Ia9jqcIIQjK3FMJBTV1sP/b6d JalDiTvH5EREP422r1I0tfq0DwgI= X-Gm-Gg: ASbGncuxcQEMZ2pWRdewBDX3CIkKskY8ZgvOiztGTl0o31WOojnU7XJE/4AGuKRoa/D jflNWewmqc8ye32g2xNY3PEpRbyoYyDEdXs23k7j27jyVFqulVFXh X-Google-Smtp-Source: AGHT+IGS6cM5pROHY1xfyCo3FY17RKf5mR8yLTof1NfkCYx7vgQj37PHAygGyKkBiOF9hikWN2vYQyQYjVoi9nbFTEA= X-Received: by 2002:a05:6e02:3b85:b0:3a7:8c3f:edce with SMTP id e9e14a558f8ab-3c2d14d21a9mr156615885ab.3.1734989008195; Mon, 23 Dec 2024 13:23:28 -0800 (PST) MIME-Version: 1.0 References: <06e1f1ee-74b2-43a2-9a63-da20ae455ae2@aklaver.com> In-Reply-To: From: Greg Sabino Mullane Date: Mon, 23 Dec 2024 16:22:51 -0500 Message-ID: Subject: Re: Need help in database design To: Divyansh Gupta JNsThMAudy Cc: Ron Johnson , pgsql-general Content-Type: multipart/alternative; boundary="00000000000085de050629f69bd8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000085de050629f69bd8 Content-Type: text/plain; charset="UTF-8" You might also look into using a bitmap, for some or all of those fields. It depends on how many distinct values each can have, of course, and also on how exactly they are accessed, but bitmaps can save you quite a bit of space. Cheers, Greg --00000000000085de050629f69bd8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
You might also look into using a bitmap, for some or all o= f those fields. It depends on how many distinct values each can have, of co= urse, and also on how exactly they are=C2=A0accessed, but bitmaps can save = you quite a bit of space.

Cheers,
Greg

--00000000000085de050629f69bd8--