473,408 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Improving my schema

Hi all
I'm in the process of upgrading a job from .mdb to .adp->msde & am
reconsidering some aspects of the design of me schema while I'm at it.

One of the tasks of this job is to schedule the loading and unloading of
trucks. For this the scheduler needs to see the load on the truck, before
and after loading, i.e. Opening Load + Variation To Load = Resulting Load.
The relation ship between these figures and other attributes form the
basis of a wide range of reporting out comes.

To keep reporting efficient, as well as making the front end easy to
program- where the results of the changes need to seen dynamically. I have
all 3 of these fields in the table (i.e. opening load, variation and
resulting load). I've also been aware from the start that this isn't
'good' relational design, as the opening load, and resulting load fields
contain redundant data (i.e. opening load is the sum of variations to the
previous record, and resulting load is the open + variation).

Having these redundant fields causes an overhead in terms of maintenance
and design (i.e - I always have to be aware to ripple through an changes
in these fields), but the performance overhead at run time seems less than
removing them and building a record set that has these sums (on a
continuous form) constantly re-evaluated.

My question after all of this is what would all you sql gurus do - go with
redundant fields, or is it possible to keep the design text book and keep
these derived fields derived and dynamic as part of the record source?

Looking forward to any discussion on this topic
Thanks
Glenn
Nov 12 '05 #1
2 1492
rkc

"Glenn Davy" <vm*****@tpg.com.au> wrote in message
news:pa****************************@tpg.com.au...
Hi all
I'm in the process of upgrading a job from .mdb to .adp->msde & am
reconsidering some aspects of the design of me schema while I'm at it.

One of the tasks of this job is to schedule the loading and unloading of
trucks. For this the scheduler needs to see the load on the truck, before
and after loading, i.e. Opening Load + Variation To Load = Resulting Load.
The relation ship between these figures and other attributes form the
basis of a wide range of reporting out comes.

To keep reporting efficient, as well as making the front end easy to
program- where the results of the changes need to seen dynamically. I have
all 3 of these fields in the table (i.e. opening load, variation and
resulting load). I've also been aware from the start that this isn't
'good' relational design, as the opening load, and resulting load fields
contain redundant data (i.e. opening load is the sum of variations to the
previous record, and resulting load is the open + variation).

Having these redundant fields causes an overhead in terms of maintenance
and design (i.e - I always have to be aware to ripple through an changes
in these fields), but the performance overhead at run time seems less than
removing them and building a record set that has these sums (on a
continuous form) constantly re-evaluated.

My question after all of this is what would all you sql gurus do - go with
redundant fields, or is it possible to keep the design text book and keep
these derived fields derived and dynamic as part of the record source?


You don't need a sql guru you need a relational database design guru.
(Geez, that word even looks stupid. guru. )
I don't know any personally, but my guess is that one, if found, would
tell you to fully normalize your data before worrying about optimizing
your application. Or words to that effect.




Nov 12 '05 #2
with the speed of workstations and servers - it has become less and
less a factor of performance in regards to redundant data - unless of
cause you're talking about 100's of complex calculations.

I would keep with the normalized approach and build queries/views in
front of the tables to ensure consistent implementation of any
calculations.

You will save in coding and maintenance - I've seen to many programs
that keep calculated fields where the resultant was other then it
should be - either through bugs or changes in calculations....

Glenn Davy <vm*****@tpg.com.au> wrote in message news:<pa****************************@tpg.com.au>.. .
Hi all
I'm in the process of upgrading a job from .mdb to .adp->msde & am
reconsidering some aspects of the design of me schema while I'm at it.

One of the tasks of this job is to schedule the loading and unloading of
trucks. For this the scheduler needs to see the load on the truck, before
and after loading, i.e. Opening Load + Variation To Load = Resulting Load.
The relation ship between these figures and other attributes form the
basis of a wide range of reporting out comes.

To keep reporting efficient, as well as making the front end easy to
program- where the results of the changes need to seen dynamically. I have
all 3 of these fields in the table (i.e. opening load, variation and
resulting load). I've also been aware from the start that this isn't
'good' relational design, as the opening load, and resulting load fields
contain redundant data (i.e. opening load is the sum of variations to the
previous record, and resulting load is the open + variation).

Having these redundant fields causes an overhead in terms of maintenance
and design (i.e - I always have to be aware to ripple through an changes
in these fields), but the performance overhead at run time seems less than
removing them and building a record set that has these sums (on a
continuous form) constantly re-evaluated.

My question after all of this is what would all you sql gurus do - go with
redundant fields, or is it possible to keep the design text book and keep
these derived fields derived and dynamic as part of the record source?

Looking forward to any discussion on this topic
Thanks
Glenn

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: wooks | last post by:
<?xml version='1.0'?> <userlogin xmlns="urn:faster:userlogin" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> <login>mick</login> <password>brown</password> </userlogin> Above is my...
0
by: C. M. Sperberg-McQueen | last post by:
wooks (wookiz@hotmail.com) wrote: > <?xml version='1.0'?> > <userlogin xmlns="urn:faster:userlogin" > xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> > <login>mick</login> > ...
6
by: Pieter | last post by:
I've read a lot of posts on "why relax ng is so very good" and on "why w3c xml schema should be the only schema language". I'm, however, still not clear on why I should prefer one over the other. ...
1
by: Hari Om | last post by:
Subject: XML Schema to XML Schema Conversion I have an XML Schema A which needs to mapped to another XML Schema B. Is there any handy tool which I could use to convert from Schema A to Schema B?...
4
by: Gordon Dickens | last post by:
I have target xml to generate from schema. All of the XML instances have the same global element i.e. <base>. I would like to combine all of the schemas into a single schema where I could...
0
by: Rajesh Jain | last post by:
I Have 2 separate schemas. --------------Schema 1 is defined as below----------- <xs:schema targetNamespace="http://Schemas/1" xmlns="http://Schemas/1" xmlns:xs="http://www.w3.org/2001/XMLSchema"...
2
by: Irfan Akram | last post by:
Hi Guys, I am in search of some innovative ideas in improving the interface of Online Marking System. At the moment it has some good functionality, but lacks a professional interface. Is...
0
by: Derek | last post by:
I am creating an intranet using Visual Web Developer Express Edition. Everything has been working OK until yesterday when I started getting 62 messages all beginning "Could not find schema...
10
by: Jo | last post by:
Hi there: I m wondering what can I do to improve my code, everytime I am coding I feel like it could be done better. I started on c# a good months ago and feel conformtable but sometimes I Need...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.