Received: from fileserver002.intecsystems.co.uk ([194.200.14.125]) by hub.org (8.10.1/8.10.1) with ESMTP id e93GGCr23668 for ; Tue, 3 Oct 2000 12:16:12 -0400 (EDT) Received: by fileserver002.intecsystems.co.uk with Internet Mail Service (5.5.2650.21) id <4D5C9BHH>; Tue, 3 Oct 2000 17:17:18 +0100 Message-ID: <7F124BC48D56D411812500D0B7472514061451@fileserver002.intecsystems.co.uk> From: Michael Ansley To: "'josh@agliodbs.com'" , sqllist Cc: Jeff MacDonald Subject: RE: OID Perfomance - Object-Relational databases Date: Tue, 3 Oct 2000 17:17:17 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C02D55.66461374" X-Archive-Number: 200010/31 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C02D55.66461374 Content-Type: text/plain; charset="iso-8859-1" Hi, Josh, In fact, the last point about OIDs is particularly pertinent, because we are expected to process up to 500 million records daily, thus exhausting the limit in, um, eight days. Is anybody aware of when this limit will be raised. Cheers... >> -----Original Message----- >> From: Josh Berkus [mailto:josh@agliodbs.com] >> Sent: 03 October 2000 17:06 >> To: sqllist >> Cc: Jeff MacDonald >> Subject: [SQL] OID Perfomance - Object-Relational databases >> >> >> Folks, >> >> Because it's a very elegant solution to my database >> structure issues, >> I'm using OID's extensively as referents and foriegn keys. >> However, I >> wanted to see if others had previous experience in this >> (answer as many >> as you like): >> >> 1. Is there a performance loss on searches and joins when >> I use the OID >> as a liniking field as opposed to a SERIAL column? >> >> 2. Can I define my own index on the OIDs of a table? >> >> 3. What is the difference between these two DDL statements >> in terms of >> data access and PG-SQL performance (assuming that table clients has >> already been defined): >> >> CREATE TABLE client_addresses AS ( >> client_OID OID REFERENCES clients, >> address1 VARCHAR (30), >> address2 VARCHAR (30), >> address3 VARCHAR (30) >> ) >> and: >> CREATE TABLE client_addresses AS ( >> client clients, >> address1 VARCHAR (30), >> address2 VARCHAR (30), >> address3 VARCHAR (30) >> ) >> >> (This is Michael's questions rephrased) >> >> 4. Int4 seems kinda small to me for a value that needs to enumerate >> every single database object. Within a couple of years of >> heavy use, a >> customer-transaction database could easily exceed 2 billion objects >> created (and destroyed). Are there plans to expand this to Int8? >> >> -Josh Berkus >> >> P.S. My aplolgies if I've already posted these questions; I never >> received them back from the list mailer. >> >> >> >> -- >> ______AGLIO DATABASE SOLUTIONS___________________________ >> Josh Berkus >> Complete information technology josh@agliodbs.com >> and data management solutions (415) 436-9166 >> for law firms, small businesses fax 436-0137 >> and non-profit organizations. pager 338-4078 >> San Francisco >> ------_=_NextPart_001_01C02D55.66461374 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [SQL] OID Perfomance - Object-Relational databases

Hi, Josh,

In fact, the last point about OIDs is particularly pertin= ent, because we are expected to process up to 500 million records daily, th= us exhausting the limit in, um, eight days.

Is anybody aware of when this limit will be raised.

Cheers...

>>   -----Original Message-----
>>   From: Josh Berkus [mailto:josh@agliodbs.com]
>>   Sent: 03 October 2000 17:06
>>   To: sqllist
>>   Cc: Jeff MacDonald
>>   Subject: [SQL] OID Perfomance - Obj= ect-Relational databases
>>  
>>  
>>   Folks,
>>  
>>      Because it's a very el= egant solution to my database
>>   structure issues,
>>   I'm using OID's extensively as refe= rents and foriegn keys.
>>    However, I
>>   wanted to see if others had previou= s experience in this
>>   (answer as many
>>   as you like):
>>  
>>   1. Is there a performance loss on s= earches and joins when
>>   I use the OID
>>   as a liniking field as opposed to a= SERIAL column?
>>  
>>   2. Can I define my own index on the= OIDs of a table?
>>  
>>   3. What is the difference between t= hese two DDL statements
>>   in terms of
>>   data access and PG-SQL performance = (assuming that table clients has
>>   already been defined):
>>  
>>   CREATE TABLE client_addresses AS (<= /FONT>
>>      client_OID  =     OID     REFERENCES clients,
>>      address1  &n= bsp;     VARCHAR (30),
>>      address2  &n= bsp;     VARCHAR (30),
>>      address3  &n= bsp;     VARCHAR (30)
>>      )
>>   and:
>>   CREATE TABLE client_addresses AS (<= /FONT>
>>      client   &nb= sp;      clients,
>>      address1  &n= bsp;     VARCHAR (30),
>>      address2  &n= bsp;     VARCHAR (30),
>>      address3  &n= bsp;     VARCHAR (30)
>>      )
>>  
>>   (This is Michael's questions rephra= sed)
>>  
>>   4. Int4 seems kinda small to me for= a value that needs to enumerate
>>   every single database object. = Within a couple of years of
>>   heavy use, a
>>   customer-transaction database could= easily exceed 2 billion objects
>>   created (and destroyed).  Are = there plans to expand this to Int8?
>>  
>>   -Josh Berkus
>>  
>>   P.S. My aplolgies if I've already p= osted these questions; I never
>>   received them back from the list ma= iler.
>>     
>>  
>>  
>>   --
>>   ______AGLIO DATABASE SOLUTIONS_____= ______________________
>>        =             &nb= sp;            =           Josh Berkus
>>      Complete informat= ion technology      josh@agliodbs.com
>>       and data ma= nagement solutions       (415) 436-9166
>>      for law firms, sm= all businesses       fax  436-0137
>>       and non-pro= fit organizations.       pager 338-4078
>>        =             &nb= sp;             &nbs= p;   San Francisco
>>  

------_=_NextPart_001_01C02D55.66461374--