473,420 Members | 1,579 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,420 software developers and data experts.

ASP.Net 1.1 Application Object & ADO.Net DataSet

All,

I have a VB.NET/ASP.NET application that uses some common data throughout.
Now what I would like to do is instead of hitting the database every time to
fetch back two dataset of 5 rows 2 cols I would like to use the application
object to store these 2 dataset. I would like to know if this is advisable
and will there be any performance issues?

Thanks
Msuk

Jun 28 '06 #1
5 1321
If the data does not change often, caching the data once for the application
is a good idea. If the data does change, but not for a session, then caching
for session is a good idea. I employ the technique regularly, as fetching
the same result set over and over is NOT a wise idea, unless it is changing
some how.

Performance issues? Provided you are not storing huge chunks of the database
in memory (or worse in memory for every session), you will find that the
issue is it performs much better than pulling the data every time.

--
Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************
"msuk" <ms**@discussions.microsoft.com> wrote in message
news:D1**********************************@microsof t.com...
All,

I have a VB.NET/ASP.NET application that uses some common data throughout.
Now what I would like to do is instead of hitting the database every time
to
fetch back two dataset of 5 rows 2 cols I would like to use the
application
object to store these 2 dataset. I would like to know if this is
advisable
and will there be any performance issues?

Thanks
Msuk

Jun 28 '06 #2
This will be fine. Normally you would want to use a session variable for
that.

Eliyahu

"msuk" <ms**@discussions.microsoft.com> wrote in message
news:D1**********************************@microsof t.com...
All,

I have a VB.NET/ASP.NET application that uses some common data throughout.
Now what I would like to do is instead of hitting the database every time
to
fetch back two dataset of 5 rows 2 cols I would like to use the
application
object to store these 2 dataset. I would like to know if this is
advisable
and will there be any performance issues?

Thanks
Msuk

Jun 28 '06 #3
Hi,

Thanks for your help. I am now storing the data in the application object
that is loaded on the by Application_Start event in the global.asax

As I am testing my website I am occasionally changing the data in my
database then stop/starting my website but the application object is not
refreshing with the new data from the database. The only way I have found to
perform a refresh is by stop/starting the IIS box. Now in my production
environment this won’t be possible as I my site will be running with many
others so how can I perform a refresh of data.

Thanks
"Eliyahu Goldin" wrote:
This will be fine. Normally you would want to use a session variable for
that.

Eliyahu

"msuk" <ms**@discussions.microsoft.comwrote in message
news:D1**********************************@microsof t.com...
All,

I have a VB.NET/ASP.NET application that uses some common data throughout.
Now what I would like to do is instead of hitting the database every time
to
fetch back two dataset of 5 rows 2 cols I would like to use the
application
object to store these 2 dataset. I would like to know if this is
advisable
and will there be any performance issues?

Thanks
Msuk


Jul 3 '06 #4
Is there any particular reason you are using an application object rather
than a session variable?

Eliyahu

"msuk" <ms**@discussions.microsoft.comwrote in message
news:DD**********************************@microsof t.com...
Hi,

Thanks for your help. I am now storing the data in the application object
that is loaded on the by Application_Start event in the global.asax

As I am testing my website I am occasionally changing the data in my
database then stop/starting my website but the application object is not
refreshing with the new data from the database. The only way I have found
to
perform a refresh is by stop/starting the IIS box. Now in my production
environment this won't be possible as I my site will be running with many
others so how can I perform a refresh of data.

Thanks
"Eliyahu Goldin" wrote:
>This will be fine. Normally you would want to use a session variable for
that.

Eliyahu

"msuk" <ms**@discussions.microsoft.comwrote in message
news:D1**********************************@microso ft.com...
All,

I have a VB.NET/ASP.NET application that uses some common data
throughout.
Now what I would like to do is instead of hitting the database every
time
to
fetch back two dataset of 5 rows 2 cols I would like to use the
application
object to store these 2 dataset. I would like to know if this is
advisable
and will there be any performance issues?

Thanks
Msuk



Jul 3 '06 #5
Hi,

The only reason I am using the application object is because it is simply
holding lookup data that will be common for every user but there could be a
requirement to change the lookup data maybe once in the year. On my
productions servers I will not be able to stop/restart iis so would a session
object be better? Is there not a way to clear out the application object for
my particular site.

Thanks
Msuk

"Eliyahu Goldin" wrote:
Is there any particular reason you are using an application object rather
than a session variable?

Eliyahu

"msuk" <ms**@discussions.microsoft.comwrote in message
news:DD**********************************@microsof t.com...
Hi,

Thanks for your help. I am now storing the data in the application object
that is loaded on the by Application_Start event in the global.asax

As I am testing my website I am occasionally changing the data in my
database then stop/starting my website but the application object is not
refreshing with the new data from the database. The only way I have found
to
perform a refresh is by stop/starting the IIS box. Now in my production
environment this won't be possible as I my site will be running with many
others so how can I perform a refresh of data.

Thanks
"Eliyahu Goldin" wrote:
This will be fine. Normally you would want to use a session variable for
that.

Eliyahu

"msuk" <ms**@discussions.microsoft.comwrote in message
news:D1**********************************@microsof t.com...
All,

I have a VB.NET/ASP.NET application that uses some common data
throughout.
Now what I would like to do is instead of hitting the database every
time
to
fetch back two dataset of 5 rows 2 cols I would like to use the
application
object to store these 2 dataset. I would like to know if this is
advisable
and will there be any performance issues?

Thanks
Msuk



Jul 3 '06 #6

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

Similar topics

0
by: Karine Edhel Proot | last post by:
Hi all, My web application has Application variables for connection strings, as they can change often. Global.asax.cs : protected void Application_Start(Object sender, EventArgs e) {...
3
by: spammy | last post by:
hi all, im currently writing an ASP.net front end to display data found in an XML file. the XML file is quite large (700k or so), and so takes a while to load. it will be changing around every...
2
by: Chris Langston | last post by:
I have a Web Server running IIS 5 or 6 on Windows 2K and Windows 2003 Server that is experiencing strange shutdown problems. We are using ASP.NET v1.1 and our application is written in VB.NET ...
3
by: Likhith Areekkal | last post by:
I am new to web programming. I am trying to do an ASP .NET reservations application. I need to create only one dataset and all the clients are supposed to use only that dataset. Moreover, I need...
9
by: Nathan Sokalski | last post by:
I am trying to connect to a Microsoft Access Database from my ASP.NET Application. I use the following code to create my connection string: cmdSelect.Connection = New...
8
by: Vishwanathan Raman | last post by:
Hi I have a declared a static DataSet object SOBJ in Global.asax.I also have a localy defined DataSet LSOBJ in Global.asax which I am storing in Application State.Is there any technical...
2
by: Lawrence Chang | last post by:
Hi My friends, Can I save dataset object to an application variable? I want all the customer use this dataset. and diffrent customer create diffrent dataview object from this dataset, so it...
2
by: Matthew Hood | last post by:
My company has expressed a desire to convert an existing MS Access application to a full VB.NET application. My experience is with VB6 so I want to ask a few questions and get some input on the...
4
by: nixon | last post by:
Hi there! Im trying to build a 3 tier application that uses a smartclient in the "view" layer. The communication between the smartclient and the server should be webservices because of potentiel...
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
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...
1
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.