Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Redirect Output in Edit Box in VC++ [modified] Pin
Rajesh R Subramanian15-Feb-08 20:58
professionalRajesh R Subramanian15-Feb-08 20:58 
GeneralRe: Redirect Output in Edit Box in VC++ Pin
Rajkumar R15-Feb-08 21:06
Rajkumar R15-Feb-08 21:06 
GeneralRe: Redirect Output in Edit Box in VC++ Pin
Rajesh R Subramanian15-Feb-08 21:13
professionalRajesh R Subramanian15-Feb-08 21:13 
GeneralRe: Redirect Output in Edit Box in VC++ Pin
Rajkumar R15-Feb-08 21:18
Rajkumar R15-Feb-08 21:18 
GeneralRe: Redirect Output in Edit Box in VC++ Pin
Rajesh R Subramanian15-Feb-08 21:37
professionalRajesh R Subramanian15-Feb-08 21:37 
GeneralRe: Redirect Output in Edit Box in VC++ Pin
queshangxintou15-Feb-08 21:45
queshangxintou15-Feb-08 21:45 
GeneralRe: Redirect Output in Edit Box in VC++ Pin
Hamid_RT18-Feb-08 7:36
Hamid_RT18-Feb-08 7:36 
GeneralFile access optimization Pin
alex.barylski15-Feb-08 19:26
alex.barylski15-Feb-08 19:26 
I have to develop something of a in-house readonly database. The records are of fixed length - which is where my question comes in.

Because the database will potentially be quite large, mapping the file to memory first is not really an option - it's a server environment too so each request would drown the server with memory consumption.

For this reason, I opted to go with a simple readonly fixed record database. Where maybe a dozen records are used or read per request - but they are different each request to again mapping to memory doesn't seem practical - except maybe for temporary caching.

Anyways, my question...does the block size of the file system dictate the ideal/optimum record size?

For instance, if you setup a system with a block size of 4096, would my code realize best performance if each record was fixed at 4096 or a multiple of that???

4096 is plenty for the records I wish to store, but should this value be configurable so different systems will realize better performance?

Again, not repeat myself, but the pressing quesiton is: If the block size is 4096, should each record be that size as well - remember that I will index each record by diving the filesize by 4096 and then fseek and read 4096 bytes from that point. So I wonder, is this the right choice to make when implemenitng this custom database?

p.s-any reference material you can include is appreicated - especially if its Linux related as that the OS I'm targeting. :P

Cheers Smile | :)

I'm finding the only constant in software development is change it self.

Questionhow to add library "advapi32.lib" in settings Pin
guru moorthy.k15-Feb-08 19:25
guru moorthy.k15-Feb-08 19:25 
AnswerRe: how to add library "advapi32.lib" in settings Pin
Cedric Moonen15-Feb-08 21:56
Cedric Moonen15-Feb-08 21:56 
GeneralDifference between CPaintDC and CClientDC Pin
Girish Kumar15-Feb-08 18:54
Girish Kumar15-Feb-08 18:54 
GeneralRe: Difference between CPaintDC and CClientDC Pin
Mark Salsbery17-Feb-08 8:58
Mark Salsbery17-Feb-08 8:58 
GeneralRe: Difference between CPaintDC and CClientDC Pin
Hamid_RT18-Feb-08 7:41
Hamid_RT18-Feb-08 7:41 
GeneralMessage Removed Pin
15-Feb-08 18:50
Armond Sarkisian15-Feb-08 18:50 
GeneralRe: Searching for a file... [modified] Pin
Rajkumar R15-Feb-08 21:51
Rajkumar R15-Feb-08 21:51 
GeneralRe: Searching for a file... Pin
Rajesh R Subramanian15-Feb-08 21:59
professionalRajesh R Subramanian15-Feb-08 21:59 
GeneralRe: Searching for a file... Pin
Rajkumar R15-Feb-08 22:02
Rajkumar R15-Feb-08 22:02 
Generalcomparison problem Pin
gentleguy15-Feb-08 17:09
gentleguy15-Feb-08 17:09 
QuestionRe: comparison problem Pin
Rajkumar R15-Feb-08 20:39
Rajkumar R15-Feb-08 20:39 
GeneralRe: comparison problem Pin
gentleguy15-Feb-08 23:19
gentleguy15-Feb-08 23:19 
GeneralRe: comparison problem Pin
Rajkumar R16-Feb-08 7:47
Rajkumar R16-Feb-08 7:47 
QuestionInvoking a .NET 2.0 class from VC++7.1 via COM - compatibility issue? Pin
jjoshua15-Feb-08 14:47
jjoshua15-Feb-08 14:47 
AnswerRe: Invoking a .NET 2.0 class from VC++7.1 via COM - compatibility issue? Pin
jjoshua19-Feb-08 4:17
jjoshua19-Feb-08 4:17 
GeneralUsing MS Mask Edit Control Pin
dipuks15-Feb-08 11:43
dipuks15-Feb-08 11:43 
GeneralRe: Using MS Mask Edit Control Pin
Joan M15-Feb-08 21:31
professionalJoan M15-Feb-08 21:31 

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.