pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Growth planning
Date: Mon, 4 Oct 2021 15:21:43 -0600
Message-ID: <dde5667d-949a-41dc-8430-d05109d168e4@gmail.com> (raw)
In-Reply-To: <385952B2-FB40-4613-ADEA-D583F7ED6B8B@alaska.edu>
References: <35170FC5-0A05-48F3-9ED1-F007CC1AF365@alaska.edu>
	<39A75BC4-7F4D-45F9-BD66-891F0294A072@gmail.com>
	<BF641FE6-D552-4358-AF39-35DD7ED3391F@alaska.edu>
	<8583b994-130a-71a9-c4a6-73cf953ac7f6@gmail.com>
	<CA01E76D-DD72-4A4B-984D-8CA30A944C43@alaska.edu>
	<cb94141f-bcc9-e045-3624-21a5c8f858b8@gmail.com>
	<385952B2-FB40-4613-ADEA-D583F7ED6B8B@alaska.edu>

On 10/4/21 3:09 PM, Israel Brewster wrote:
>> On Oct 4, 2021, at 12:46 PM, Ron <ronljohnsonjr@gmail.com 
>> <mailto:ronljohnsonjr@gmail.com>> wrote:
>>
>> On 10/4/21 12:36 PM, Israel Brewster wrote:
>> [snip]
>>> Indeed. Table per station as opposed to partitioning? The *most* I 
>>> can reasonably envision needing is to query two stations, i.e. I 
>>> could see potentially wanting to compare station a to some 
>>> “baseline” station b. In general, though, the stations are 
>>> independent, and it seems unlikely that we will need any 
>>> multi-station queries. Perhaps query one station, then a second 
>>> query for a second to display graphs for both side-by-side to look 
>>> for correlations or something, but nothing like that has been 
>>> suggested at the moment.
>>>
>>
>> Postgresql partitions *are* tables.  What if you partition by station 
>> (or range of stations)?
>
> Yeah, that’s what I thought, but Rob had said “Table per station”, so 
> I wasn’t sure if he was referring to *not* using partitioning, but 
> just making “plain” tables.
>
> Regardless, I intend to try portioning by station sometime this week, 
> to see how performance compares to the “one big table” I currently 
> have. Also to figure out how to get it set up, which from what I’ve 
> seen appears to be a bit of a pain point.
> ---
>
My "strict" table per station suggestion was meant as an option to avoid 
the partitioning pain point entirely if it wasn't going to buy you 
anything. Namely querying more than one station's data.

In a write-once scenario such as this,  would a "clustered index" on 
datetime be stable, performant?  Seems a read-for-export could put the 
head down at time point A and just go?

view thread (14+ messages)  latest in thread

Message-ID: <dde5667d-949a-41dc-8430-d05109d168e4@gmail.com>
Permalink:  ../dde5667d-949a-41dc-8430-d05109d168e4@gmail.com/
Also on:    postgresql.org/message-id/dde5667d-949a-41dc-8430-d05109d168e4@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: robjsargent@gmail.com
  Subject: Re: Growth planning
  In-Reply-To: <dde5667d-949a-41dc-8430-d05109d168e4@gmail.com>
  References: <35170FC5-0A05-48F3-9ED1-F007CC1AF365@alaska.edu> <39A75BC4-7F4D-45F9-BD66-891F0294A072@gmail.com> <BF641FE6-D552-4358-AF39-35DD7ED3391F@alaska.edu> <8583b994-130a-71a9-c4a6-73cf953ac7f6@gmail.com> <CA01E76D-DD72-4A4B-984D-8CA30A944C43@alaska.edu> <cb94141f-bcc9-e045-3624-21a5c8f858b8@gmail.com> <385952B2-FB40-4613-ADEA-D583F7ED6B8B@alaska.edu> <dde5667d-949a-41dc-8430-d05109d168e4@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox