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

Design issue: Preload data or get on request

Hi,

I would appreciate your opinion on the following issue. Suppose there is a
windows (not web!) application that uses the data stored on an SQL server.
There can be more than one concurrent user of the app, so the concurrent
database update is an issue. There are also plenty of forms that when
displayed have some or all controls pre-filled with data, which is stored in
a number of different tables in the database. Question: what approach is
better in this case - preload the data and store it in a dataset and only
actually connect to the DB at the initial load and when insert/update is
required or load the data for each user request and not maintain any cache.
The number of records in question will be in hundreds rather than thousands
and the app is designed to run on WinXP.

--
Thanks.

Jul 21 '05 #1
4 1500
pre-query the domain tables (lookup tables where the data rarely changes).
Look up anything and everything else on the fly (using stored procedures),

--- Nick

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Frustrated Newbe" <Fr*************@discussions.microsoft.com> wrote in
message news:A6**********************************@microsof t.com...
Hi,

I would appreciate your opinion on the following issue. Suppose there is
a
windows (not web!) application that uses the data stored on an SQL server.
There can be more than one concurrent user of the app, so the concurrent
database update is an issue. There are also plenty of forms that when
displayed have some or all controls pre-filled with data, which is stored
in
a number of different tables in the database. Question: what approach is
better in this case - preload the data and store it in a dataset and only
actually connect to the DB at the initial load and when insert/update is
required or load the data for each user request and not maintain any
cache.
The number of records in question will be in hundreds rather than
thousands
and the app is designed to run on WinXP.

--
Thanks.

Jul 21 '05 #2
in
Frustrated Newbe wrote:
Hi,

I would appreciate your opinion on the following issue. Suppose there is a
windows (not web!) application that uses the data stored on an SQL server.
There can be more than one concurrent user of the app, so the concurrent
database update is an issue. There are also plenty of forms that when
displayed have some or all controls pre-filled with data, which is stored in
a number of different tables in the database. Question: what approach is
better in this case - preload the data and store it in a dataset and only
actually connect to the DB at the initial load and when insert/update is
required or load the data for each user request and not maintain any cache.
The number of records in question will be in hundreds rather than thousands
and the app is designed to run on WinXP.


I'm working on the same problem right now.

The design I'm choosing is:

1. Use a web service to send the client an XmlDocument at first load.
2. Set up WSE 2.0 to send notifications of changes to the document to
the server and all the clients using messaging.
3. Occasionally refresh the database with the most current changes to
the XML document at the web service server.
Jul 21 '05 #3
Why are you using a web service on top of a database as part of the
middleware of an application?

This is sometimes called for, but not usually.

Don't get me wrong... I'm no enemy of web services. I'm a serious proponent
of SOA when used correctly. One of my systems uses a web service between a
client and the db server. However, in that case, the system is designed to
support a variety of clients, and the web services have functionality that
goes far above and beyond simple DB calls. Therefore, you could say that
the web services form an external interface, and that I'm delivering more
than one application in my system.

On the other hand, the OP suggested a situation that clearly does NOT call
for a WS. You chimed in that you are doing the same thing, and, from what I
can tell, you are right... you have the same concerns... but your solution
is less efficient, with more points of failure, and more points of attack
(security). You even appear to have added a broadcasting component (a rare
thing, considering the fact that it is usually more of a problem than a
solution).

Is there a reason for the overhead? What constraints in your system led you
to such an odd and expensive design?

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"in" <gu*****@treeview.control> wrote in message
news:38*************@individual.net...

I'm working on the same problem right now.

The design I'm choosing is:

1. Use a web service to send the client an XmlDocument at first load.
2. Set up WSE 2.0 to send notifications of changes to the document to the
server and all the clients using messaging.
3. Occasionally refresh the database with the most current changes to the
XML document at the web service server.

Jul 21 '05 #4
Hi,

It all depends what application you are after,

If it is for a bank, to process by instance all on line actions from the
clients, than definitely there is another approach needed than when it is
for a school, where the children are getting information about history from
a database.

Just my thought,

Cor
Jul 21 '05 #5

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

Similar topics

43
by: grz02 | last post by:
Hi, Im an experienced database+software designer and developer, but, unfortunately, anything to do with web-programming and web-systems designs is still a pretty new area to me... (been working...
1
by: Stacey | last post by:
Hi, I'm hoping for a bit of advise-- I have a (relatively, from the point-of-view of this dilettante) complex script that attempts to preload certain images in order to trigger one of a series of...
1
by: Peter Fastré | last post by:
Hello The javascript preload function I always used, is causing problems with the latest version of gecko-browsers. Never had any problems with it though. Maybe there's something wrong? ...
4
by: Frustrated Newbe | last post by:
Hi, I would appreciate your opinion on the following issue. Suppose there is a windows (not web!) application that uses the data stored on an SQL server. There can be more than one concurrent...
29
by: MP | last post by:
Greets, context: vb6/ado/.mdb/jet 4.0 (no access)/sql beginning learner, first database, planning stages (I think the underlying question here is whether to normalize or not to normalize this...
2
by: Spotnick | last post by:
I have no idea why, but since I'm trying to recreate my website using ASP.NET 2.0 I've encountered so many performance issues that I'm about to give up and continue using v1.1 Seriously, how can...
3
by: misdst23 | last post by:
Hi, I would like to use the preload feature to transmit data from the client to the server. I use the SRC attribute of the image to compose the URL and transmit the info. How can i do this? Any...
0
by: YellowFin Announcements | last post by:
Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications. What we have today are traditional BI tools that...
2
by: Jami Bradley | last post by:
I'm in need of some design suggestions! We have a fairly large DB with thousands of users accessing data throughout the day. I have been given the task of restructuring a core part of the web...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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,...

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.