Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXxFG-0004gu-GQ for pgsql-admin@arkaria.postgresql.org; Wed, 06 Oct 2021 03:05:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mXxFF-0001GH-Fd for pgsql-admin@arkaria.postgresql.org; Wed, 06 Oct 2021 03:05:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXxFF-0001G9-3l for pgsql-admin@lists.postgresql.org; Wed, 06 Oct 2021 03:05:25 +0000 Received: from mail-ot1-x331.google.com ([2607:f8b0:4864:20::331]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mXxFC-00016t-DY for pgsql-admin@lists.postgresql.org; Wed, 06 Oct 2021 03:05:24 +0000 Received: by mail-ot1-x331.google.com with SMTP id j11-20020a9d190b000000b00546fac94456so1382472ota.6 for ; Tue, 05 Oct 2021 20:05:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=npJl/qa+577qTSE5p4MVJ+QVpjA+h6bpk0K3U2vc7qk=; b=fSxzWiNCtUrR0q6bsTYXBXMH95E7Zs6E8neykXZGg2F9eRdxl2l6d7bichWLbacT6w 2bcf+WXEOCwWTeta3d14vImxdGIPsgj3OWLf8R8vL4zwrvw1u3uTm66HkmkiJm/AXBD1 Ujgd0bh2MVYOUBuhL5255O2rALbsUue27jyMrC827SrSoZXtCO8FEC2wBhCIeXTixICb CJkKNSa5YPW6zm6nKJLFfA2V2yDikAfJ/njrYmH3t42ybyBVJxWjxU3YXvuECPxRDYIC 6Ec1HfHDgQH38JVBKibv2/m0rHKi60I6lbOHJeQhIAeotbzj6ebro/+QB3J7fd/tubIz nnMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=npJl/qa+577qTSE5p4MVJ+QVpjA+h6bpk0K3U2vc7qk=; b=xSx/bbHAe6+T1TncqWTLW4mW/8Uu5qrLyeZZlM3qsCP4r6YoHGgSFXgFpq4tWnyJN8 oiE7EkWMFPNG/1FDo7Vx8DXMcrjqoW1Fw3b8sjdJNFY17bs8nuOa9dW76pqfNIkqz2Rm D5HV2cJrcETYX8RMKjE+nuW4iab9aoMb6Q1TZ9EFfzRU31qf/GRFak5TZq1cSadLWbPH BqX37B8dKhLvPgOQdJx29NFNc4wJ9iAZiXKCZ8ts10w+Et2KwzUSSAC0sb3EKGgeb623 k97+tpQz10YWwi7WHEcle7UjZ8DzzA3BzFnhKNhOxcSnxESV+twEycGdf56VcNxjiC2/ XDhQ== X-Gm-Message-State: AOAM530lyCVSTfF3CvyWbYkVJwegI19wx8r2ANm7QwbuqBkpF39uEiwi RUoaAbVqVMjc82CuTSZdM6aBzkcnUKM= X-Google-Smtp-Source: ABdhPJzSieC8EAwa9LcCyhlMfwcth26I4tJmErLTjpK9MY8enu8gF4ChKFuZ6FKgfKjNl2wKUHaM8Q== X-Received: by 2002:a9d:60de:: with SMTP id b30mr16811296otk.343.1633489520196; Tue, 05 Oct 2021 20:05:20 -0700 (PDT) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id u15sm4005350oon.35.2021.10.05.20.05.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Oct 2021 20:05:19 -0700 (PDT) Subject: Re: Pros/cons of big databases vs smaller databases and RDS To: pgsql-admin@lists.postgresql.org References: From: Ron Message-ID: Date: Tue, 5 Oct 2021 22:05:19 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------1C54B9D3D4AFDEDAF0227C74" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------1C54B9D3D4AFDEDAF0227C74 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 10/5/21 5:06 PM, Wells Oliver wrote: > Hi-- to keep it short, I feel like I've generally heard the larger your DB > is, the less efficient it might run, likely due to disk I/O. Maybe I'm > terribly mistaken in this perception. Less *efficient*??? Of course /ceteris paribus/ it takes longer to do "whole database" activities on a larger database because... there's more data, but that should be obvious to all. So you scale up the IO (SAN, RAID 50, faster disks, etc)  or partition the data *or both*. > > We have two DBs, one primarily accessed by humans and systems, which is > ~1TB in size, and aggregates most of what we store in raw, longer format > on a second DB that is about ~6TB in size. > > As we consider plans to migrate to RDS, we've talked a lot about > combining the two as more and more the case is querying the larger DB and > wanting data only available in the smaller DB. > > Of course, we can solve this by copying things back and forth, but we're > also thinking: why not just one big DB? > > Anyone have any experiences with a similar project, and especially any > technical configurations that might be beneficial in using RDS? Nothing like your scenario, but we recently migrated an 8TB Oracle database hosted on a VM + (big fancy) SAN to a 6TB RDS Postgresql database.  Reads are faster, and writes seem a bit slower, but enough software changed that comparisons are dubious. One thing I /can/ say is, "watch your costs!!"  Amazon does an excellent job of obfuscating that, hiding it from everyone but the accountants.  It's dreadfully easy for technical people to unknowingly spend tens or hundreds of thousands of dollars in a month when testing things. -- Angular momentum makes the world go 'round. --------------1C54B9D3D4AFDEDAF0227C74 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 10/5/21 5:06 PM, Wells Oliver wrote:
Hi-- to keep it short, I feel like I've generally heard the larger your DB is, the less efficient it might run, likely due to disk I/O. Maybe I'm terribly mistaken in this perception.

Less *efficient*???

Of course ceteris paribus it takes longer to do "whole database" activities on a larger database because... there's more data, but that should be obvious to all.

So you scale up the IO (SAN, RAID 50, faster disks, etc)  or partition the data or both.


We have two DBs, one primarily accessed by humans and systems, which is ~1TB in size, and aggregates most of what we store in raw, longer format on a second DB that is about ~6TB in size.

As we consider plans to migrate to RDS, we've talked a lot about combining the two as more and more the case is querying the larger DB and wanting data only available in the smaller DB.

Of course, we can solve this by copying things back and forth, but we're also thinking: why not just one big DB?

Anyone have any experiences with a similar project, and especially any technical configurations that might be beneficial in using RDS?

Nothing like your scenario, but we recently migrated an 8TB Oracle database hosted on a VM + (big fancy) SAN to a 6TB RDS Postgresql database.  Reads are faster, and writes seem a bit slower, but enough software changed that comparisons are dubious.

One thing I can say is, "watch your costs!!"  Amazon does an excellent job of obfuscating that, hiding it from everyone but the accountants.  It's dreadfully easy for technical people to unknowingly spend tens or hundreds of thousands of dollars in a month when testing things.

--
Angular momentum makes the world go 'round.
--------------1C54B9D3D4AFDEDAF0227C74--