From: Adrian Klaver <adrian.klaver@aklaver.com>
To: ourdiaspora <ourdiaspora@protonmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: database design with temporary tables
Date: Sun, 29 Aug 2021 09:50:15 -0700
Message-ID: <918c3f8f-cd38-aace-5e6d-7a67a764648e@aklaver.com> (raw)
In-Reply-To: <PEnuOxuynQA1AX6I7YrJRrWCdnF-Gu4vkDEggm20AlOOjAgD8zQ84XbhNWAkrV_z_DbI_xGEgzxWSlw62xki3ye2GxqAR_JSKNUp6C9GbW4=@protonmail.com>
References: <IRuoNkHXtafj7Vm_RhI-AB56qHPVRSDRD95NmX9lxlsQvmsK361slJ4ONjoP0GvX8tNsyXUD5KF1TW21uJyh15BDdrQCDHFDvPXa1Nu-eVE=@protonmail.com>
<0e9373c9-565c-5edb-5c71-b3ea40be9473@aklaver.com>
<PEnuOxuynQA1AX6I7YrJRrWCdnF-Gu4vkDEggm20AlOOjAgD8zQ84XbhNWAkrV_z_DbI_xGEgzxWSlw62xki3ye2GxqAR_JSKNUp6C9GbW4=@protonmail.com>
On 8/29/21 9:36 AM, ourdiaspora wrote:
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
>
> On Sunday, August 29th, 2021 at 5:24 PM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
>
>>
>> Presumably not. Temporary tables only live at most for the length of a
>>
>> session. It would be a really bad idea to hold sessions open for 24
>>
>> hours.
>
> Is there an alternative scenario, such as the user is able to create a new table with saves the session data for a maximum time (such as 24 hours), even up to a certain time if the web browser crashes for example?
This is a it depends answer. Some factors in play:
1) Number of users over say a 24 hour period.
2) The size of the CSV files.
3) Is the data merge a one time thing or can it be repeated in a time
period.
4) Are users going to be repeat customers?
For this sort of thing I write out a detailed outline of the
who/what/why/where/when. In doing that answers tend to follow.
>
>>
>> The abo
>>
>
> Incomplete response?
>
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, ourdiaspora@protonmail.com
Subject: Re: database design with temporary tables
In-Reply-To: <918c3f8f-cd38-aace-5e6d-7a67a764648e@aklaver.com>
References: <IRuoNkHXtafj7Vm_RhI-AB56qHPVRSDRD95NmX9lxlsQvmsK361slJ4ONjoP0GvX8tNsyXUD5KF1TW21uJyh15BDdrQCDHFDvPXa1Nu-eVE=@protonmail.com> <0e9373c9-565c-5edb-5c71-b3ea40be9473@aklaver.com> <PEnuOxuynQA1AX6I7YrJRrWCdnF-Gu4vkDEggm20AlOOjAgD8zQ84XbhNWAkrV_z_DbI_xGEgzxWSlw62xki3ye2GxqAR_JSKNUp6C9GbW4=@protonmail.com> <918c3f8f-cd38-aace-5e6d-7a67a764648e@aklaver.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