Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / February 2005

Tip: Looking for answers? Try searching our database.

When to go for Cache and Session

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
subtur - 23 Jan 2005 23:04 GMT
Hi Guys,

I have two datasets A and B.A changes its info frequently ,B changes its
info less frequently.
What i have to choose Session or Cache to store A  and B.

Thanks,
Subtur
Ben Strackany - 07 Feb 2005 18:35 GMT
You go with Session if the information is specific to a user. You go with
the general Cache if the information is applicable to many or all users. You
can think of Session as a user-specific Cache.

You generally do not use Session or Cache if the data changes frequently. So
in your cache, I would cache B, not A.

Signature

Ben Strackany
www.developmentnow.com

> Hi Guys,
>
[quoted text clipped - 7 lines]
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
subtur - 09 Feb 2005 05:47 GMT
Thanks Ben for the reply.

Subtur.
Ben Strackany - 11 Feb 2005 20:06 GMT
No prob, happy to help. Best of luck w/ your development.

Signature

Ben Strackany
www.developmentnow.com

> Thanks Ben for the reply.
>
> Subtur.
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
subtur - 12 Feb 2005 17:31 GMT
Hi Ben,

this is a question from one of the tests for mcp 315.i re am confused
for the answer he gave and what i thought.

question is:

There is a complex algorithm used on a webpage that you are coding
changes frequently.During Unit testing,you want to view the output of
several variables during calculations.However u do not want these
statments to be processed when the webpage is released into production
and execution speed is critical.
Which of the following statments you used to view the value of the
variable x?

a)Trace.WriteIf(condition,"x"+x.Tostring())

b)Trace.Write(condition,"x"+x.Tostring())

c)Debug.WriteIf(condition,"x"+x.Tostring())

d)Debug.Write(condition,"x"+x.Tostring())

the answer he gives as d) and i think b) because Trace object are still
processed when the Mode is Debug or Release.

during execution speed critcal situations which mode we need to
use.Debug or Release.?

Thanks in advance,
subtur

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.