473,498 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using DataSet in the memory cache???

I would like to know a way to use the DataSet in a memory
cache into a C# application.

I only found examples in ASP.NET applications that they
are not accepted in the C # application.

I am needing to improve the performance of my application
and would like to know as to store in cache the content of
a DataSet.

Thanks...

Nov 16 '05 #1
1 2479
Thomaz,

The ASP.NET cache is a service that is provided for ASP.NET. It doesn't
make sense to have in a C# application, since you have complete control over
everything in the application (whereas in an ASP.NET service, you are
running in a runtime that existed before your app runs, and will run after
your app completes as well).

You can use a DataSet to cache information, and just store it somewhere
in your app, for use later. However, you have to make sure that what you
cache is something that is accessed frequently enough to justify the cost in
memory that the DataSet takes.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Thomaz" <su***@nce.ufrj.br> wrote in message
news:1c*****************************@phx.gbl...
I would like to know a way to use the DataSet in a memory
cache into a C# application.

I only found examples in ASP.NET applications that they
are not accepted in the C # application.

I am needing to improve the performance of my application
and would like to know as to store in cache the content of
a DataSet.

Thanks...

Nov 16 '05 #2

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

Similar topics

2
945
by: DelphiBlue | last post by:
I have a Nested Datagrid that is using a data relations to tie the parent child datagrids together. All is working well with the display but I am having some issues trying to sort the child...
1
4230
by: Arjen | last post by:
Hi, What are the main differences between a dataset and a dataview? What should I cache dataset or dataview... or what is the best thing to do in what situation? Thanks! Arjen
3
2826
by: martin | last post by:
Hi, I am storing a dataset in cache, which is happening fine. I can easily retrive it at postback from the cache, cast it to a dataset and reuse it. However I have specified that the cache...
2
1085
by: Quentin Huo | last post by:
Hi, According to some people, DataSet is good for the N-Tier Aapplication because it maks the logic layer seperated from the database. But a DataSet object will be assigned a block of memory to...
1
1110
by: Spencer H. Prue | last post by:
Hello, I have two.aspx files and so far there are two pages on my web app. On one page I use a button event to create a dataset and fill/update it from the MSDE. I have dataadapter, a...
12
1586
by: Dave | last post by:
I'm relatively new to ASP and .NET and having trouble getting my head round this. I want to read a datset from a database, and display information from one row at a time, using a Next and a...
15
2389
by: Joe Fallon | last post by:
I would like to know how you can figure out how much memory a given instance of a class is using. For example, if I load a collection class with 10 items it might use 1KB, and if I load it with...
1
1764
by: Scott M. Lyon | last post by:
Part of an application I'm working on needs to manipulate some XML data (in an XML file), by reading the data into a DataSet using the MyDataSet.ReadXML method, and then using MyDataSet.WriteXML to...
1
1057
by: =WereWolf= | last post by:
Hi there! Many of you already discussed of datasets stored in cache for an asp.net application. I stored a "large?" dataset (nearly 4000 records) in an Application variable, which contains a...
0
7162
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
7197
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
6881
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
5456
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
4584
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...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
287
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.