Big table and partition

Поиск
Список
Период
Сортировка
От Rajesh Kumar
Тема Big table and partition
Дата
Msg-id CAJk5AtYv5x9_j9HtRtt_7JE-p-Fs2sA_kb2u4fbNcwwsqNVqMQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Big table and partition  (Ron <ronljohnsonjr@gmail.com>)
Re: Big table and partition  (Christophe Courtois <christophe.courtois@dalibo.com>)
Список pgsql-admin
Hi 

In my env, I have a table 30GB where data is getting inserted directly whenever the new block is created in block chain...

Sometimes, there is a query running to check whether the recent block is created ?

I have been asked to do partition, i said manager since we are not at all using the past data, partition is not required. Instead we can stop the sync (downtime not required), change the name of table , create a new table with same structure with original name and keep only tis month data. Then sync the blockchain so that new data will come to newly created table and old data will be there simply as a storage as we r not selecting any query from old data...

Note: on a longer run, data will keep on coming in whenever new block is created.

Is that right ? Any suggestions ? Better options ?



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

Предыдущее
От: Jean-Christophe Boggio
Дата:
Сообщение: Re: One PG process eating more than 40GB of RAM and getting killed by OOM
Следующее
От: Ron
Дата:
Сообщение: Re: Big table and partition