Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
AnswerRe: How I Change Menu Css on page load Event OR Runtime Pin
leppie31-Oct-08 2:57
leppie31-Oct-08 2:57 
GeneralServiceController remote access, impersonation Pin
laserbaronen31-Oct-08 2:20
laserbaronen31-Oct-08 2:20 
QuestionDictionary size issue Pin
George_George31-Oct-08 2:16
George_George31-Oct-08 2:16 
AnswerRe: Dictionary size issue Pin
Luc Pattyn31-Oct-08 2:25
sitebuilderLuc Pattyn31-Oct-08 2:25 
GeneralRe: Dictionary size issue Pin
George_George31-Oct-08 2:32
George_George31-Oct-08 2:32 
GeneralRe: Dictionary size issue Pin
Luc Pattyn31-Oct-08 2:44
sitebuilderLuc Pattyn31-Oct-08 2:44 
GeneralRe: Dictionary size issue Pin
George_George31-Oct-08 3:35
George_George31-Oct-08 3:35 
GeneralRe: Dictionary size issue Pin
Luc Pattyn31-Oct-08 3:42
sitebuilderLuc Pattyn31-Oct-08 3:42 
Hi George,

I assume your data is on disk somehow. So populating a data structure
(Dictionary or anything else) first will read the data from disk; since
this overflows the physical memory, it will spill over to the page file(s),
so performance will resemble a huge file copy before anything useful will
be possible.

If you could skip the "load all data first" step, you would not incur
this penalty. The easiest way to do this, is by using a database.
The database code is smart enough to cache data, and uses available
memory in an optimal way.

Also, when the application is very simple (so you could do without
a database), then the required SQL will also be very simple. Maybe
you just need a single table, and a single SELECT line, as in
SELECT * FROM books where books.ISBN = '1234-5678-1234'

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Fixturized forever. Confused | :confused:


GeneralRe: Dictionary size issue Pin
Alan Balkany31-Oct-08 3:53
Alan Balkany31-Oct-08 3:53 
GeneralRe: Dictionary size issue Pin
George_George31-Oct-08 3:56
George_George31-Oct-08 3:56 
GeneralRe: Dictionary size issue Pin
George_George31-Oct-08 3:55
George_George31-Oct-08 3:55 
GeneralRe: Dictionary size issue Pin
Luc Pattyn31-Oct-08 5:04
sitebuilderLuc Pattyn31-Oct-08 5:04 
GeneralRe: Dictionary size issue Pin
Giorgi Dalakishvili31-Oct-08 3:58
mentorGiorgi Dalakishvili31-Oct-08 3:58 
GeneralRe: Dictionary size issue Pin
George_George31-Oct-08 4:03
George_George31-Oct-08 4:03 
GeneralRe: Dictionary size issue Pin
Giorgi Dalakishvili31-Oct-08 4:08
mentorGiorgi Dalakishvili31-Oct-08 4:08 
GeneralRe: Dictionary size issue Pin
George_George31-Oct-08 4:21
George_George31-Oct-08 4:21 
GeneralRe: Dictionary size issue Pin
Giorgi Dalakishvili31-Oct-08 4:32
mentorGiorgi Dalakishvili31-Oct-08 4:32 
GeneralRe: Dictionary size issue Pin
George_George31-Oct-08 4:45
George_George31-Oct-08 4:45 
GeneralRe: Dictionary size issue Pin
Giorgi Dalakishvili31-Oct-08 8:18
mentorGiorgi Dalakishvili31-Oct-08 8:18 
GeneralRe: Dictionary size issue Pin
led mike31-Oct-08 4:34
led mike31-Oct-08 4:34 
GeneralRe: Dictionary size issue Pin
George_George31-Oct-08 4:42
George_George31-Oct-08 4:42 
GeneralRe: Dictionary size issue Pin
led mike31-Oct-08 4:53
led mike31-Oct-08 4:53 
AnswerRe: Dictionary size issue Pin
Alan Balkany31-Oct-08 3:50
Alan Balkany31-Oct-08 3:50 
GeneralRe: Dictionary size issue Pin
George_George31-Oct-08 4:01
George_George31-Oct-08 4:01 
GeneralRe: Dictionary size issue Pin
Alan Balkany31-Oct-08 4:13
Alan Balkany31-Oct-08 4:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.