Re: Too many IO?

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Tatsuo Ishii <ishii(at)postgresql(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Too many IO?
Date: 2012-03-14 08:28:30
Message-ID: CA+U5nMJf+QB8_jzrniHF5Xv7fz2y1Q8pt3-8aPbkrOaia6w8yA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Mar 14, 2012 at 2:29 AM, Tatsuo Ishii <ishii(at)postgresql(dot)org> wrote:

> However I saw 1505 more accesses in total. My guess is this number
> mainly comes from index meta page access. So my guess is we need 3
> page accesses (to traverse b tree index tree) before reaching the leaf
> page in average. Am I correct or the number is execessive?

Meta page access was optimised away some time ago.

Descending the index tree can easily take that long, perhaps longer
when the table is larger and the tree is deeper.

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2012-03-14 09:26:17 Re: initdb and fsync
Previous Message Dimitri Fontaine 2012-03-14 08:27:08 Re: Command Triggers, patch v11