Re: Foreign key creation on table with huge record count.

Поиск
Список
Период
Сортировка
От Abhishek Singh
Тема Re: Foreign key creation on table with huge record count.
Дата
Msg-id CANfmBj1gDQwUO027X9Nfuo2JHd3nGq932x1iedF1C2O0k1TauA@mail.gmail.com
обсуждение исходный текст
Ответ на Foreign key creation on table with huge record count.  (Gambhir Singh <gambhir.singh05@gmail.com>)
Список pgsql-admin
Hi,

Ofcourse! You can speed up the execution of creation of FKC (Foreign Key 🔐 constraint) simply by running the queries that involve joins between the parent and child tables.  

Foreign key indexes can significantly improve performance for queries that involve joins between the parent and child tables.

"Join" need to be studied from table to table basis for different databases!

Regards,
Abhishek Singh

*****************************************
*****************************************
*****************************************

Sent using Panasonic - Egula 810 9P
*****************************************
*****************************************

On Tue, 31 Jan, 2023, 01:43 Gambhir Singh, <gambhir.singh05@gmail.com> wrote:
Hi, 

I have a table with a record count of around 100 Million records. while creating foreign key on the table took a significant amount time to get created.

Is there any way to speed up the execution of creation of foreign key constraint ?

do we have parallel hint like option in postgreSQL as there in Oracle. 


--
Thanks & Regards
Gambhir Singh

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

Предыдущее
От: Marcello Lorenzi
Дата:
Сообщение: Pgsql best ha solution
Следующее
От: Ankur Kaushik
Дата:
Сообщение: user permission denied for schema