473,804 Members | 3,797 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1514
rkc

"Glenn Davy" <vm*****@tpg.co m.au> wrote in message
news:pa******** *************** *****@tpg.com.a u...
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.co m.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
3325
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 schema instance.
0
4229
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> > <password>brown</password> > </userlogin> > Above is my schema instance.
6
2494
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. I've made a small list of some good and bad points of both. These points don't really go into the grammar aspects of these languages, but are more about secondary aspects. The grammar aspects are different, but both are suitable for validating...
1
2100
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? Any related informaiton on this is appreciated. Thanks!
4
2397
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 generate any of the specific instances. sample schema one: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:element name="base">
0
1728
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" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="Loan"> <xs:complexType> <xs:sequence> <xs:element name="Borrower" maxOccurs="unbounded"> <xs:complexType> <xs:attribute name="BorrID" use="required">
2
1167
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 there a way of improving the whole interface of the system to make it look consistent as well as professional. Any useful links will be appreciated! Also, how can we copy incorporate the same layout of an existing web-site in
0
11276
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 information for the". I am using Cassini as the web server on my PCand I can still run my site from within VWD. Does anyone know what I have done to cause these messages to appear? Could not find schema information for the element...
10
1785
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 to look up stuff. maybe someone can suggest a good book on good practices for c#? Cheers Jo
0
9710
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9589
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10593
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10329
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10085
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7626
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6858
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3830
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.