New feature: cached foreign keys

From: pasman pasmański <pasman(dot)p(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: New feature: cached foreign keys
Date: 2011-07-09 07:06:05
Message-ID: CAOWY8=avEXg6K7u+Z1PjX=GA8Sf6a_Nwxj1jOiujgiYZV3KiVA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2011-07-09 07:34:58 Re: [HACKERS] Creating temp tables inside read only transactions
Previous Message Jeff Davis 2011-07-09 07:03:17 Re: [HACKERS] Creating temp tables inside read only transactions