Re: Cenceptual help needed - periodic events

From: "Josh Berkus" <josh(at)agliodbs(dot)com>
To: "Pat M" <pmeloy(at)removethispart(dot)home(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Cenceptual help needed - periodic events
Date: 2001-10-16 00:12:30
Message-ID: web-148510@davinci.ethosmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Ross J. Reedstrom 2001-10-16 00:34:16 Re: to_char()??
Previous Message Josh Berkus 2001-10-15 22:44:06 Re: MEDIAN as custom aggregate?