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

Subject/Observer & Model-Controller-View Question

I have a few questions about IssueVision (from WindowsForms) concerning its
scalability and performance. Rather, if I were to implement techniques
described here into another application, how would it perform, how well will
it scale, and what considerations should I be take into account?

First, let me say that I appreciate the work done to get this application
out there for me to look over. I continually refer to it and I think I am
ready to design an application using this model. Without samples like this,
I would not be enlightened enough to ask more question, so, thank you.

Let’s say we have the proverbial order entry application, in this case we
sell products and services. Each client application would need the ability
to work in a disconnected mode from time to time.

The application flow would resemble this:

Sales Rep Prepares a Quote
- Quote Header
- Date/Time
- Sales Rep ID
- Customer Information
- Billing Address
- Mailing Address
- Quote Details
- Product Kits (Grouping of Parts)
- Parts
- Services (Installation)
Sales Rep Converts a Quote to Sale (Workorder and Invoice)
- Order Header
- Date/Time
- Sales Rep ID
- Customer Information
- Billing Address
- Mailing Address
- Payment Terms
- Order Details
- Product Kits (Grouping of Parts)
- Parts
- Services (Installation)

Data in Synchronized with Central Data Store

Fulfillment Rep processes the order
- Opens Workorder Ticket
- Locates and freezes parts
- Backorder status
- Warehouse transfer request
- Check Service Rep Availability
- Assign Technician
- Monitor Workorder status

Billing Processes Invoice / Payments

Sales Rep Monitors Order Activity for this Sale

While Finance and Fulfillment would most likely be connected to the server
at all times, the sales force will be required to host a lot of data locally.
What’s more, it would seem that the sales rep would have to load a lot of
data into memory at one time.

1. Is there a way to minimize how much data is loaded into memory at a time
and still use Subject/Observer and Disconnected methods?
2. According to the documentation on Microsoft’s site about the
Model-Controller-View model, there is a propensity to code memory leaks into
the system, how do I avoid them? How do I test for them?
3. It would seem that to convert the GUI to a web application, it would
require some major code changes to make it work. For example:
a. Helper functions (While not required for a web client) use the
Application namespace, and therefore could not be included into a generic
assembly)
b. The only piece that you could isolate into a common assembly would be the
Controller (IssueSubject) and the patterns (IObserver, ISubject).

It appears as though the goal in IssueVision was to make a narrow data
model. I think I understand why it was designed that way, first of because
it is efficient, and second this was to demonstrate technologies in use.
However, in the case of our ordering system, our Orders table would have two
or three foreign keys (depending on how you model your data) Shipping
Address, Billing Address, and Customer. I have a few questions concerning
this:
1. Using the IssueVision model, how would one implement Transactions? I
would create a transaction object in my Version of the IVData object and
create a transaction as I needed. Would I still be informed of conflicts as
they occur and would they be only for when the client/server copies differ?
2. Using the dataadapter’s Update() method and handling the row updated
event for addresses, how would I know which address row represents the
mailing address and which represents the billing address (Assuming the
addressed is an autonumber int)
3. Using the IVData component implicitly instantiates all the data adapters
and command objects at once. Is there an overhead associated with that, is
there a better way? If I were to instantiate the objects that I need as I
need them, do I introduce other issues or affect performance?
4. Would it be more efficient to send/receive the data serialized than to
pass a dataset?

When loading the data, I can easily see that the parts catalog would be
lookup reference data. I can further see that this data only needs to be
updated on demand or periodically and not every time the application is
launched. I think I get that well enough.

When loading the open orders though, I have a question about the Orders
foreign key partner tables. In the case of addresses I would not need to
load that data while displaying the information in the data list. I would
need to load that data while working with the individual item though. Enter
the dataview and my next set of questions:
1. First, is there a better way then dataviews?
2. How do I cast a datarowview back to table.rows()?
3. When looking up the shipping address, I assume I would need to extend the
subject object to include a method for returning datarowview (dataview seems
to be the only object to allow filtering of loaded data), when updating this
information is the data still a member of the dataset?

When creating an application a bit more complex than IssueVision, what are
some considerations to take into account, pitfalls of development (besides
debugging a webservice), and finally is this the right model to implement for
an application larger than IssueVision?
Thank you for your time.

Jul 22 '05 #1
0 1359

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

Similar topics

7
by: Will | last post by:
On the subject of Data Warehouses, Data Cubes & OLAP…. I would like to speak frankly about Data Warehouses, Data Cubes and OLAP (on-line analytical processing). Has it dawned on anyone else...
0
by: Paolino | last post by:
Lately I was needing to use multiple inheritance to split behaviour of a class and modularize it. But the problem raises when the need is to add operations to a method already present in one of...
3
by: Michael Schneider | last post by:
Hello All, I am comming back to python after being away for several years. I would like to use weak refs in an observer pattern implementation. The problme that I have seems to be that...
1
by: Marcel Hug | last post by:
Hi NG ! I have already written a task about MVC and I tried to get the best informations together. I would like to implement the MVC pattern and it work on the way I did it. At first i know the...
22
by: Krivenok Dmitry | last post by:
Hello All! I am trying to implement my own Design Patterns Library. I have read the following documentation about Observer Pattern: 1) Design Patterns by GoF Classic description of Observer....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.