Re: in memory data

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



If data will be required for all users then application cache or global
var can be used, IMO there is no big difference.
There is. A global variable is not thread safe. The cache is thread-safe.
Failure to acknowledge such conditions ultimately result in a misbehaving
applications.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Professional VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

"Vadym Stetsyak" <vadym_s@xxxxxxx> wrote in message
news:OMmY4XxXGHA.4060@xxxxxxxxxxxxxxxxxxxxxxx
Hello, joshtobin!

j> so i need to store registered users nickname against a unique key
j> (telphone number) and a number they called, is it worth making a
dataset
j> just for this data? or would it be better to create a user object and
j> put it in an array list say?

It depends on how you want to access that data. How often you will access
it and how much of it will be there...
You can wrap that data into object and put it into Hashtable, with unique
key

j> Also is it better to use the application cache or a static variable in
j> the global.asax?

If data is valid only in the context of particular user that is -
session-bound, then answer can be session cache.
If data will be required for all users then application cache or global
var can be used, IMO there is no big difference.
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com


.



Relevant Pages

  • Re: Dramatic speed effect of code-data proximity
    ... depending on whether or not the address 'var' is in the same 1 Kbyte ... I'm guessing that the data write invalidates the code cache, ... it to be reloaded from main memory each time around the loop. ...
    (comp.lang.asm.x86)
  • Re: mandrake 10.1 too slow
    ... >> Thanks a lot for the above directions, but IMO they don't apply ... >> because I have neither modem nor ethernet on this laptop, ... cache size: 64 KB ...
    (alt.linux)
  • Re: comments on my design of a new language?
    ... > var names, they are used to look up the contents, like a hash lookup, ... weird treatment of arrays is the whole basis for the language! ... >> seem questionable imo... ... the language developer... ...
    (comp.lang.misc)
  • Re: checking cache
    ... i just want to ask if cache checking is possible in javascript? ... var start = new Date.getTime ... var totalTime = end - start ... assume it was in the cache. ...
    (microsoft.public.scripting.jscript)
  • Re: checking cache
    ... You could try to measure the loading time though. ... so cache checking is not possible, then how to measure the loading time? ... var start = new Date.getTime ... Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/ ...
    (microsoft.public.scripting.jscript)