Re: Persisting a Dataset
- From: "JT" <Jthayer@xxxxxxxxxxxxx>
- Date: Thu, 5 May 2005 11:18:05 -0700
Thanks Beth. The datatable occupies about 400KB. It is read only, and is
needed by each user. The application is for entering medical claims and the
datatable contains a list of possible medical diagnosis codes. I would like
to get at least 50, and hopefully 100, users on one box with 2x2.7 Xeons and
4GB RAM.
Thanks
JT
"Beth Massi [Architect MVP]" wrote:
> I'm not sure you're going to get around the memory issue without possibly
> using cross-appdomain remoting because Terminal Server will create separate
> app domains for each exe that is running. Also, the DataTable would have to
> be read-only because I don't see how you could update the table in a
> threadsafe manner through databinding. This is an interesting issue I may
> have to play with. One approach could be to create a separate library with
> a remotable Singleton class (inherits MarshalByRefObject) and is thread safe
> which would load the table into memory and serve all the exes. I'm not sure
> how the databinding would behave though. You may end up having to serialize
> the DataTable across the appdomain anyways and that would defeat the
> purpose.
>
> How many TS sessions are you running? How much memory is that DataTable
> actually using? You may have an easier time breaking down the amount of data
> you load into the table. Does the user really need all that data available
> at once? Is there a way you can fetch the data only if it is needed? If you
> can store the table to disk and load it into memory only when needed, that
> may be an easier solution.
>
> "JT" <Jthayer@xxxxxxxxxxxxx> wrote in message
> news:CA1CC017-8B36-4088-BA9F-A2179D895F4E@xxxxxxxxxxxxxxxx
> > Hi,
> > I have a Windows Forms app deployed on Terminal Server. When the app
> > starts, it loads up several datatables that then serve as the datasource
> > for
> > comboboxes throughout the app. One of these datatables has about 5000
> > ROWS,
> > at 2 columns each. I would like to avoid having each user's instance of
> > my
> > app load such a large datatable into memory. Any suggestions on how I can
> > load a globally common instance of this data, that can be used by each
> > instance of my app?
> > --
> > John
>
>
>
.
- Follow-Ups:
- Re: Persisting a Dataset
- From: Stephany Young
- Re: Persisting a Dataset
- From: Beth Massi [Architect MVP]
- Re: Persisting a Dataset
- References:
- Persisting a Dataset
- From: JT
- Re: Persisting a Dataset
- From: Beth Massi [Architect MVP]
- Persisting a Dataset
- Prev by Date: Re: Best practices for dynamic user searches
- Next by Date: Re: Problems with Errors (Is this a bug)
- Previous by thread: Re: Persisting a Dataset
- Next by thread: Re: Persisting a Dataset
- Index(es):
Relevant Pages
|