pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Ansley <Michael.Ansley@intec-telecom-systems.com>
To: sqllist <pgsql-sql@postgresql.org>
Subject: RE: OID Perfomance - Object-Relational databases
Date: Tue, 3 Oct 2000 17:54:17 +0100
Message-ID: <7F124BC48D56D411812500D0B7472514061454@fileserver002.intecsystems.co.uk> (raw)

Regarding all of this, can someone tell me in a fairly technical manner what
the difference is between searching for a row using it's primary key, and
searching using it's OID.  Rumour has it that it's faster.  Technically,
what's the difference?
 
Cheers...

-----Original Message-----
From: Michael Ansley [mailto:Michael.Ansley@intec-telecom-systems.com]
Sent: 03 October 2000 17:36
To: 'Mitch Vincent'
Cc: sqllist
Subject: RE: [SQL] OID Perfomance - Object-Relational databases



Unsigned, I think you can double it, although I haven't applied much thought
to this, so I could well be wrong. 


>>   -----Original Message----- 
>>   From: Mitch Vincent [ mailto:mitch@venux.net <mailto:mitch@venux.net> ]

>>   Sent: 03 October 2000 17:35 
>>   To: Michael Ansley 
>>   Cc: sqllist 
>>   Subject: Re: [SQL] OID Perfomance - Object-Relational databases 
>>   
>>   
>>   Aren't OIDs just integers? Isn't this limit just the limit 
>>   of the value an 
>>   int4 can hold? 
>>   
>>   2,147,483,647 is the max for an int4 (I think) so at 500 
>>   million a day 
>>   you're looking at more like  4.29 (and change) days 
>>   
>>   If I'm correct in all the above, there wouldn't be any way 
>>   to increase the 
>>   limit without the server running on a 64-bit machine 
>>   (which you could do, I 
>>   guess).. 
>>   
>>   *shrug* just some thoughts.. 
>>   
>>   -Mitch 
>>   
>>   ----- Original Message ----- 
>>   From: "Michael Ansley" <Michael.Ansley@intec-telecom-systems.com> 
>>   To: <josh@agliodbs.com>; "sqllist" <pgsql-sql@postgresql.org> 
>>   Cc: "Jeff MacDonald" <jeff@pgsql.com> 
>>   Sent: Tuesday, October 03, 2000 9:17 AM 
>>   Subject: RE: [SQL] OID Perfomance - Object-Relational databases 
>>   
>>   
>>   > 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
<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 
>>   > >> 
>>   > 
>>   

view thread (21+ messages)  latest in thread

Message-ID: <7F124BC48D56D411812500D0B7472514061454@fileserver002.intecsystems.co.uk>
Permalink:  ../7F124BC48D56D411812500D0B7472514061454@fileserver002.intecsystems.co.uk/
Also on:    postgresql.org/message-id/7F124BC48D56D411812500D0B7472514061454@fileserver002.intecsystems.co.uk

 · 

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-sql@postgresql.org
  Cc: Michael.Ansley@intec-telecom-systems.com
  Subject: Re: OID Perfomance - Object-Relational databases
  In-Reply-To: <7F124BC48D56D411812500D0B7472514061454@fileserver002.intecsystems.co.uk>
  References: <7F124BC48D56D411812500D0B7472514061454@fileserver002.intecsystems.co.uk>

* 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