473,399 Members | 2,774 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,399 software developers and data experts.

Testing a data tier

Evening chaps

I'm after a bit of advice, I've written a data tier using attributes,
reflection and inheritance, to test it I've written a simple order entry
program. Glad I did as it picked up many flaws, but as you may be aware as
soon as reflection is used things start slowing down, can anyone advise on a
decent test scenario.

I could create a table with 30 fields, create say 1000 records, create
another table with a 1:m relationship on the first with another 20 fields
and 5 records per record in the first table, and so on and so on.

Is this what you guys would do?

Chris.
Nov 16 '05 #1
2 1481
If it's order entry, I'm assuming an order will have one or more line items.
This lends itself to a parent-child table relationship as you mentioned.
Suppose the parent table is called Order, and the child table is LineItem.
For each order,
there will be one record in the Order table. That table may have a column
called order_id to identify it. Each line item on the order will have a
single record in the LineItem table. The LineItem table will probably have
a column called lineitem_id (uniquely identifies the line item), and another
column maybe called order_id. This order_id column will have the same value
as the Order record it belongs to.

Order id = 1001

LineItem id = 1 order_id=1001
LineItem id = 2 order_id=1001
LineItem id = 3 order_id=1001

This has been a very brief answer to your question which I think is really
asking a relational database theory.

kevin aubuchon
www.aubuchon-design.com
"Tilted" <pu***@gvygrq.pb.hx (ROT13)> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Evening chaps

I'm after a bit of advice, I've written a data tier using attributes,
reflection and inheritance, to test it I've written a simple order entry
program. Glad I did as it picked up many flaws, but as you may be aware as soon as reflection is used things start slowing down, can anyone advise on a decent test scenario.

I could create a table with 30 fields, create say 1000 records, create
another table with a 1:m relationship on the first with another 20 fields
and 5 records per record in the first table, and so on and so on.

Is this what you guys would do?

Chris.

Nov 16 '05 #2
Not really a question to do with relational databases, I've been using them
for years, hence the ability to develop this (apparantly) working tier.

The question was what is the best way to test it, should I just create
masses of data? Is this a true scenario? Is it better to just carry on
with the order entry type of thing or can anyone suggest a project I can
create which will thoroughly test its capabilties and speed.

Chris.

"Kevin Aubuchon" <ke************@charter.net> wrote in message
news:iw*******************@fe07.lga...
If it's order entry, I'm assuming an order will have one or more line
items.
This lends itself to a parent-child table relationship as you mentioned.
Suppose the parent table is called Order, and the child table is LineItem.
For each order,
there will be one record in the Order table. That table may have a column
called order_id to identify it. Each line item on the order will have a
single record in the LineItem table. The LineItem table will probably
have
a column called lineitem_id (uniquely identifies the line item), and
another
column maybe called order_id. This order_id column will have the same
value
as the Order record it belongs to.

Order id = 1001

LineItem id = 1 order_id=1001
LineItem id = 2 order_id=1001
LineItem id = 3 order_id=1001

This has been a very brief answer to your question which I think is really
asking a relational database theory.

kevin aubuchon
www.aubuchon-design.com
"Tilted" <pu***@gvygrq.pb.hx (ROT13)> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Evening chaps

I'm after a bit of advice, I've written a data tier using attributes,
reflection and inheritance, to test it I've written a simple order entry
program. Glad I did as it picked up many flaws, but as you may be aware

as
soon as reflection is used things start slowing down, can anyone advise
on

a
decent test scenario.

I could create a table with 30 fields, create say 1000 records, create
another table with a 1:m relationship on the first with another 20 fields
and 5 records per record in the first table, and so on and so on.

Is this what you guys would do?

Chris.


Nov 16 '05 #3

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

Similar topics

16
by: D Witherspoon | last post by:
I am developing a Windows Forms application in VB.NET that will use .NET remoting to access the data tier classes. A very simple way I have come up with is by creating typed (.xsd) datasets. For...
0
by: momina_dar | last post by:
AlachiSoft “TierDeveloper” eradicates the problem of writing thousands of lines of code for your middle tier. Many software solutions on the market can do it for you but according to our research...
3
by: zc2468 | last post by:
I am new to dot net and would like to write an application using a solid 3 tier design because I expect the app to require a lot of updates and maintenance over time. I am creating my own data...
13
by: Michelle | last post by:
Hi all... I could use a little TLC here for understanding and not for solving a specific problem... sorry if I've got the wrong group, but I'm using VB so I figured this was the most appropriate...
5
by: Tina | last post by:
I'm reading about the "3-tier" design afforded by using Object Data Sources in the App_Data folder in 2.0 asp.net projects. To me, putting an object data source in a separate folder on the web...
4
by: pratham | last post by:
Hi! I'm making a database application and i heard from a friend that it is more proffecional and easy to do this with bussines objects. Can anyone tell me where i can find more info on bussines...
3
by: alan.chambers | last post by:
I am new to C++/CLI. I want to do a very simple thing. In other C++ applications, my forms have always been 'context free' in the sense that I pass them a temporary copy of the data for them to...
2
by: grawsha2000 | last post by:
Greetings, I am developing this N-tier business app. The problem I'm facing is when I try to pass business objects (employees, dept..etc) from business tier to data tier,i.e., the add method in...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
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
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.