pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Grant <grant@conprojan.com.au>
To: Dan Lyke <danlyke@flutterby.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Serials.
Date: Mon, 26 Mar 2001 09:58:57 +1000 (EST)
Message-ID: <Pine.LNX.4.21.0103260954540.29634-100000@webster.conprojan.com.au> (raw)
In-Reply-To: <15037.22456.492634.743275@wynand.flutterby.com>

> Grant writes:
> > I have a message board. Where users can send each other messages. I
> > doubt I will ever get 2147483647 messages, but I want to make sure I
> > never get an error where the message isn't sent.
> 
> Think about loads. If your users are going to be posting 10
> messages/second, that's 864000 messages per day, you won't wrap for
> nearly 7 years. I've got a pretty heavy mail load, including spam I
> probably get 300 messages/day, weekends are lighter, so if you've got
> a bunch of weenies who are subscribed to a gazillion mailing lists
> you're talking three thousand users for six and a half years.
> 
> A little light if you're planning on being the next Hotmail (A test
> account set up there gets 70 spams/day without my ever publishing the
> address), but for your average mid-range discussion forum you're
> probably good for a while. I doubt that, say, Salon's TableTalk forum
> gets even 10k new messages per day.

I understand what you're saying. However it's not the amount of messages per day. I have cycle set on the sequence so that when it reaches the limit it will start back at 1 again. If however some users still have messages in their accounts that have used random ids from 1 onwards postgresql will produce the error that it's trying to insert a duplicate id that already exists, so in theory I want the system to run for infinity. I hope this makes sense. Thankyou for your time.




view thread (11+ messages)

Message-ID: <Pine.LNX.4.21.0103260954540.29634-100000@webster.conprojan.com.au>
Permalink:  ../Pine.LNX.4.21.0103260954540.29634-100000@webster.conprojan.com.au/
Also on:    postgresql.org/message-id/Pine.LNX.4.21.0103260954540.29634-100000@webster.conprojan.com.au

 · 

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: grant@conprojan.com.au, danlyke@flutterby.com
  Subject: Re: Serials.
  In-Reply-To: <Pine.LNX.4.21.0103260954540.29634-100000@webster.conprojan.com.au>
  References: <15037.22456.492634.743275@wynand.flutterby.com> <Pine.LNX.4.21.0103260954540.29634-100000@webster.conprojan.com.au>

* 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