pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Tomka Gergely <tomka@zeus.gau.hu>
To: Robert Treat <xzilla@users.sourceforge.net>
Cc: Bill Moran <wmoran@potentialtech.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Tests
Date: Fri, 22 Aug 2003 17:00:17 -0700
Message-ID: <200308221700.17201.josh@agliodbs.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0308222250351.2302-100000@zeus.gau.hu>
References: <Pine.LNX.4.33.0308222250351.2302-100000@zeus.gau.hu>

Tomka,

Since this didn't post last time:

Another good test to do would be one that measures simultaenous steaming 
read-write.   For example:

create table_a, with at least 10,000 records, where field1 is the PK and 
field2 is a text field.   
create table_b, with 500,000 or more records, where field2 is an FK to 
table_a, and field_3 is a text field.

do the following:

UPDATE table_b SET field3 = field3 || 'something'
WHERE EXISTS (select field1 FROM table_a
	where table_a.field1 = table_b.field2
	AND table_a.field_2 = 'x')

For the test to be most effective, the condition above should affect about 
100,000 records of table_a, and the records should not be contiguos on disk.  
Further, tablea.field2 should not be indexed in order to force a disk scan.

Also another test I'd really like to see is hardware raid (Adaptec, LSI) 
against Linux software raid, and 5-disk RAID 5 against 4-disk RAID 1+0.

-- 
-Josh Berkus
 Aglio Database Solutions
 San Francisco




view thread (20+ messages)  latest in thread

Message-ID: <200308221700.17201.josh@agliodbs.com>
Permalink:  ../200308221700.17201.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200308221700.17201.josh@agliodbs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: josh@agliodbs.com, tomka@zeus.gau.hu, xzilla@users.sourceforge.net, wmoran@potentialtech.com
  Subject: Re: Tests
  In-Reply-To: <200308221700.17201.josh@agliodbs.com>
  References: <Pine.LNX.4.33.0308222250351.2302-100000@zeus.gau.hu> <200308221700.17201.josh@agliodbs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox