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

list in memory


For an asp.NET app. I have a list that I want to keep in memory.

My choices are keeping the list in an asp.NET listbox control, session
object, database, xml file.

This list has values that need to be checked against the stack. If they're
in the stack then they're in use, if not then I'm going to use or replace the
values with new values I can use.

What good consulting advice regarding this model and ways to keep a list in
memory can anyone provide?

Regards;

Segue
Dec 12 '05 #1
7 1063
segue wrote:
For an asp.NET app. I have a list that I want to keep in memory.

My choices are keeping the list in an asp.NET listbox control, session
object, database, xml file.

This list has values that need to be checked against the stack. If they're
in the stack then they're in use, if not then I'm going to use or replace the
values with new values I can use.

What good consulting advice regarding this model and ways to keep a list in
memory can anyone provide?

Regards;

Segue

Why not an array?

Tom

Dec 12 '05 #2
Can't you store the array as a Session Variable object?
--
Dennis in Houston
"segue" wrote:
OK. How would you store the array?

"tomb" wrote:
segue wrote:
For an asp.NET app. I have a list that I want to keep in memory.

My choices are keeping the list in an asp.NET listbox control, session
object, database, xml file.

This list has values that need to be checked against the stack. If they're
in the stack then they're in use, if not then I'm going to use or replace the
values with new values I can use.

What good consulting advice regarding this model and ways to keep a list in
memory can anyone provide?

Regards;

Segue

Why not an array?

Tom

Dec 13 '05 #3
OK. How would you store the array?

"tomb" wrote:
segue wrote:
For an asp.NET app. I have a list that I want to keep in memory.

My choices are keeping the list in an asp.NET listbox control, session
object, database, xml file.

This list has values that need to be checked against the stack. If they're
in the stack then they're in use, if not then I'm going to use or replace the
values with new values I can use.

What good consulting advice regarding this model and ways to keep a list in
memory can anyone provide?

Regards;

Segue

Why not an array?

Tom

Dec 13 '05 #4
Yes this may be OK. I have to do some tests is there any other
way to keep an array in memory because as a session object
it expires? This array is constantly getting updated.

"Dennis" wrote:
Can't you store the array as a Session Variable object?
--
Dennis in Houston
"segue" wrote:
OK. How would you store the array?

"tomb" wrote:
segue wrote:

>For an asp.NET app. I have a list that I want to keep in memory.
>
>My choices are keeping the list in an asp.NET listbox control, session
>object, database, xml file.
>
>This list has values that need to be checked against the stack. If they're
>in the stack then they're in use, if not then I'm going to use or replace the
>values with new values I can use.
>
>What good consulting advice regarding this model and ways to keep a list in
>memory can anyone provide?
>
>Regards;
>
>Segue
>
>
Why not an array?

Tom

Dec 14 '05 #5
yes you may store it in a singleton class

you can easy create this with a module and access it from anny page ,,,
however keep in mind that doing so will make it availlable to all clients so
if the data is user specific ,, you should create a key value pair ( that is
why i love the hashtable so much , cause it is also the fastest collection
like object )

regards

Michel Posseth [MCP]

"segue" <se***@discussions.microsoft.com> schreef in bericht
news:E1**********************************@microsof t.com...
Yes this may be OK. I have to do some tests is there any other
way to keep an array in memory because as a session object
it expires? This array is constantly getting updated.

"Dennis" wrote:
Can't you store the array as a Session Variable object?
--
Dennis in Houston
"segue" wrote:
> OK. How would you store the array?
>
> "tomb" wrote:
>
> > segue wrote:
> >
> > >For an asp.NET app. I have a list that I want to keep in memory.
> > >
> > >My choices are keeping the list in an asp.NET listbox control,
> > >session
> > >object, database, xml file.
> > >
> > >This list has values that need to be checked against the stack. If
> > >they're
> > >in the stack then they're in use, if not then I'm going to use or
> > >replace the
> > >values with new values I can use.
> > >
> > >What good consulting advice regarding this model and ways to keep a
> > >list in
> > >memory can anyone provide?
> > >
> > >Regards;
> > >
> > >Segue
> > >
> > >
> > Why not an array?
> >
> > Tom
> >

Dec 14 '05 #6
What would you use for the Key? Possibly the Session ID?
--
Dennis in Houston
"m.posseth" wrote:
yes you may store it in a singleton class

you can easy create this with a module and access it from anny page ,,,
however keep in mind that doing so will make it availlable to all clients so
if the data is user specific ,, you should create a key value pair ( that is
why i love the hashtable so much , cause it is also the fastest collection
like object )

regards

Michel Posseth [MCP]

"segue" <se***@discussions.microsoft.com> schreef in bericht
news:E1**********************************@microsof t.com...
Yes this may be OK. I have to do some tests is there any other
way to keep an array in memory because as a session object
it expires? This array is constantly getting updated.

"Dennis" wrote:
Can't you store the array as a Session Variable object?
--
Dennis in Houston
"segue" wrote:

> OK. How would you store the array?
>
> "tomb" wrote:
>
> > segue wrote:
> >
> > >For an asp.NET app. I have a list that I want to keep in memory.
> > >
> > >My choices are keeping the list in an asp.NET listbox control,
> > >session
> > >object, database, xml file.
> > >
> > >This list has values that need to be checked against the stack. If
> > >they're
> > >in the stack then they're in use, if not then I'm going to use or
> > >replace the
> > >values with new values I can use.
> > >
> > >What good consulting advice regarding this model and ways to keep a
> > >list in
> > >memory can anyone provide?
> > >
> > >Regards;
> > >
> > >Segue
> > >
> > >
> > Why not an array?
> >
> > Tom
> >


Dec 14 '05 #7
Hi,

I think the singleton class is the answer I'm looking for thank you.

I'm reading and trying to implement:

http://msdn.microsoft.com/library/de...netchapt05.asp

So I'll let you know how it goes.

Thanks;

Segue

"m.posseth" wrote:
yes you may store it in a singleton class

you can easy create this with a module and access it from anny page ,,,
however keep in mind that doing so will make it availlable to all clients so
if the data is user specific ,, you should create a key value pair ( that is
why i love the hashtable so much , cause it is also the fastest collection
like object )

regards

Michel Posseth [MCP]

"segue" <se***@discussions.microsoft.com> schreef in bericht
news:E1**********************************@microsof t.com...
Yes this may be OK. I have to do some tests is there any other
way to keep an array in memory because as a session object
it expires? This array is constantly getting updated.

"Dennis" wrote:
Can't you store the array as a Session Variable object?
--
Dennis in Houston
"segue" wrote:

> OK. How would you store the array?
>
> "tomb" wrote:
>
> > segue wrote:
> >
> > >For an asp.NET app. I have a list that I want to keep in memory.
> > >
> > >My choices are keeping the list in an asp.NET listbox control,
> > >session
> > >object, database, xml file.
> > >
> > >This list has values that need to be checked against the stack. If
> > >they're
> > >in the stack then they're in use, if not then I'm going to use or
> > >replace the
> > >values with new values I can use.
> > >
> > >What good consulting advice regarding this model and ways to keep a
> > >list in
> > >memory can anyone provide?
> > >
> > >Regards;
> > >
> > >Segue
> > >
> > >
> > Why not an array?
> >
> > Tom
> >


Dec 14 '05 #8

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

Similar topics

9
by: fudmore | last post by:
Hello Everybody. I have a Segmentation fault problem. The code section at the bottom keeps throwing a Segmentation fault when it enters the IF block for the second time. const int...
14
by: Dave | last post by:
Hello all, After perusing the Standard, I believe it is true to say that once you insert an element into a std::list<>, its location in memory never changes. This makes a std::list<> ideal for...
2
by: barnesc | last post by:
>barnesc at engr.orst.edu wrote: > > So my question is: are there any other *practical* applications of a > > B-tree based list/set/dict ? In other words, is this module totally > > worth coding,...
13
by: na1paj | last post by:
here's a simple linked list program. the DeleteNode function is producing an infinit loop i think, but i can't figure out where.. #include <stdio.h> typedef struct { char *str; //str is a...
7
by: Evangelista Sami | last post by:
Hi all i have implemented a list type as an array of pointer like this typedef struct { int nb_elements; void **elements; } list; to avoid having a pointer for each element as it is done...
24
by: Robin Cole | last post by:
I'd like a code review if anyone has the time. The code implements a basic skip list library for generic use. I use the following header for debug macros: /* public.h - Public declarations and...
22
by: joshc | last post by:
In an interview for an embedded software position recently I was asked to write code, in C, for printing the contents of a linked list backwards. After a few minutes I came up with the recursive...
20
by: sirsnorklingtayo | last post by:
hi guys please help about Linked List, I'm having trouble freeing the allocated memory of a single linked list node with a dynamic char* fields, it doesn't freed up if I use the FREE()...
12
by: kalyan | last post by:
Hi, I am using Linux + SysV Shared memory (sorry, but my question is all about offset + pointers and not about linux/IPC) and hence use offset's instead on pointers to store the linked list in...
4
by: jerry | last post by:
i have a problem when i read c++ primer ,i don't know what the follow codes meaing. char *word={"frank","english","edali","slina"}; size_t word_size=sizeof(word)/sizeof(char*);...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
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.