New feature: cached foreign keys - Mailing list pgsql-general

From pasman pasmański
Subject New feature: cached foreign keys
Date
Msg-id CAOWY8=avEXg6K7u+Z1PjX=GA8Sf6a_Nwxj1jOiujgiYZV3KiVA@mail.gmail.com
Whole thread Raw
Responses Re: New feature: cached foreign keys  (Craig Ringer <craig@postnewspapers.com.au>)
List pgsql-general
Hi.

Today i have an idea for increase performance of foreign keys. After
search parent record, store ctid in shared memory. Subsequent searches
look first to the record at stored ctid, and when it is deleted do
regular search using index.

Pro: faster searching for common keys when parent table is constant.
Less locks on index.

Contra: slower searching when parent table is heavy updated. More
memory used for cached ctid's.



--
------------
pasman

pgsql-general by date:

Previous
From: Jeff Davis
Date:
Subject: Re: [HACKERS] Creating temp tables inside read only transactions
Next
From: Craig Ringer
Date:
Subject: Re: [HACKERS] Creating temp tables inside read only transactions