Re: doubts

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: doubts
Дата
Msg-id CAKFQuwZmnEQWoABFTCZ_NW5eCSdyXEzPAkYd1xSweW8b_e4H8A@mail.gmail.com
обсуждение исходный текст
Ответ на doubts  (Thomaz Luiz Santos <thomaz.santos@gmail.com>)
Список pgsql-admin
On Wed, Aug 3, 2022 at 4:06 PM Thomaz Luiz Santos <thomaz.santos@gmail.com> wrote:

I need to refresh the data in one table, but I use one truncate to clean the data and insert again the new data, 

I have one question: is it possible to minimize the downtime for this process ( because this table is large. ), using another strategy, like one view and updating the view ? 


Temporary and/or unlogged tables?

Truncate and insert is the fastest you can do if every record has to change.

Otherwise, "maybe" is about the best you should expect if you are going to be that generic and non-specific regarding "process".

David J.

В списке pgsql-admin по дате отправления:

Предыдущее
От: Thomaz Luiz Santos
Дата:
Сообщение: doubts
Следующее
От: Scott Ribe
Дата:
Сообщение: Re: doubts