pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Pat M <pmeloy@removethispart.home.com>
To: pgsql-sql@postgresql.org
Subject: Re: Cenceptual help needed - periodic events
Date: Mon, 15 Oct 2001 17:12:30 -0700
Message-ID: <web-148510@davinci.ethosmedia.com> (raw)
In-Reply-To: <9q9dq9$pnp$1@news.tht.net>

Pat,

> I'm goofing around, designing a planned maintenance system. In a
> couple of
> weeks I'll be taking on the actual scheduling of tasks. How would you
> experts out there approach this? I've beeen thinking I can approach
> this two
> ways.

I'm working on a legal calendar system, and we're storing all events as
rows in the database.  However, in our case the reasons are
overwhelming, since the rules on how new events are generated (aside
from those entered by users) are complex enough to fill several pages.
Calculating on the fly isn't conceivable.

Also, all of our events are, at one level or another, dependant on a
user-entered event.  Thus we can make all auto-generated events
"children" of the parent event and change them when the parent changes.

I designed another system that was all auto-scheduling -- a weekly
produce delivery system.  In this system, we took the expedient of not
generating any even more than a week ahead of time, and providing
functions that would drop all events and then re-create them,

Differently, in a time entry system I designed all of the due dates for
timecards were calculated on the fly by a complex view. 

So it depends on the number and complexity of the rules you will be
applying.  If the rules are very complex and/or require procedural
logic, you probably want to generate and store records.  Otherwise, no.

-Josh

______AGLIO DATABASE SOLUTIONS___________________________
                                       Josh Berkus
  Complete information technology      josh@agliodbs.com
   and data management solutions       (415) 565-7293
  for law firms, small businesses        fax 621-2533
    and non-profit organizations.      San Francisco



view thread (2+ messages)

Message-ID: <web-148510@davinci.ethosmedia.com>
Permalink:  ../web-148510@davinci.ethosmedia.com/
Also on:    postgresql.org/message-id/web-148510@davinci.ethosmedia.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com, pmeloy@removethispart.home.com
  Subject: Re: Cenceptual help needed - periodic events
  In-Reply-To: <web-148510@davinci.ethosmedia.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