Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralToolbars status Pin
Paolo Vernazza14-Mar-02 6:00
Paolo Vernazza14-Mar-02 6:00 
GeneralRe: Toolbars status Pin
Alexander Wiseman14-Mar-02 6:11
Alexander Wiseman14-Mar-02 6:11 
GeneralRe: Toolbars status Pin
Paolo Vernazza14-Mar-02 12:08
Paolo Vernazza14-Mar-02 12:08 
GeneralRe: Toolbars status Pin
Alexander Wiseman14-Mar-02 12:24
Alexander Wiseman14-Mar-02 12:24 
GeneralRe: Toolbars status Pin
Paolo Vernazza15-Mar-02 1:22
Paolo Vernazza15-Mar-02 1:22 
GeneralRe: Toolbars status Pin
Alexander Wiseman15-Mar-02 15:38
Alexander Wiseman15-Mar-02 15:38 
GeneralMulti-threaded app connecting to db, Design Question Pin
14-Mar-02 5:55
suss14-Mar-02 5:55 
GeneralRe: Multi-threaded app connecting to db, Design Question Pin
Joaquín M López Muñoz14-Mar-02 6:21
Joaquín M López Muñoz14-Mar-02 6:21 
You can use a thread pool, each thread having its own DB connection that is active during the entire liftime of the thread itself. So, after a thread has executed a query, instead of terminating it can go to a "pending" state, ready to serve additional queries. This way you don't have the penaly of creating a thread and creating a DB connection each time a query has to be executed. Of course this needs some working out (is it the pool fixed, or do it vary in time according to the frequency of queries, etc.) but I think the approach can be appropriate.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: Multi-threaded app connecting to db, Design Question Pin
14-Mar-02 12:59
suss14-Mar-02 12:59 
GeneralRe: Multi-threaded app connecting to db, Design Question Pin
Joaquín M López Muñoz14-Mar-02 19:59
Joaquín M López Muñoz14-Mar-02 19:59 
GeneralDifferent Databases Pin
Alexander Wiseman14-Mar-02 5:01
Alexander Wiseman14-Mar-02 5:01 
GeneralRe: Different Databases Pin
Jon Sagara14-Mar-02 6:52
Jon Sagara14-Mar-02 6:52 
QuestionHow to get a nonclient area rect? Pin
generic_user_id14-Mar-02 3:45
generic_user_id14-Mar-02 3:45 
AnswerRe: How to get a nonclient area rect? Pin
Tomasz Sowinski14-Mar-02 3:58
Tomasz Sowinski14-Mar-02 3:58 
GeneralRe: How to get a nonclient area rect? Pin
generic_user_id14-Mar-02 4:22
generic_user_id14-Mar-02 4:22 
AnswerHmm... I got another question Pin
generic_user_id14-Mar-02 8:52
generic_user_id14-Mar-02 8:52 
GeneralRe: Hmm... I got another question Pin
Tomasz Sowinski14-Mar-02 9:49
Tomasz Sowinski14-Mar-02 9:49 
GeneralI tried that but... Pin
generic_user_id14-Mar-02 9:48
generic_user_id14-Mar-02 9:48 
GeneralRe: I tried that but... Pin
Tomasz Sowinski14-Mar-02 9:58
Tomasz Sowinski14-Mar-02 9:58 
GeneralRe: I tried that but... Pin
Ravi Bhavnani14-Mar-02 10:34
professionalRavi Bhavnani14-Mar-02 10:34 
GeneralRe: I tried that but... Pin
generic_user_id14-Mar-02 10:51
generic_user_id14-Mar-02 10:51 
Generalclistctrl question Pin
jafrazee14-Mar-02 3:06
jafrazee14-Mar-02 3:06 
GeneralRe: clistctrl question Pin
Tomasz Sowinski14-Mar-02 3:15
Tomasz Sowinski14-Mar-02 3:15 
GeneralRe: clistctrl question Pin
jafrazee14-Mar-02 3:23
jafrazee14-Mar-02 3:23 
GeneralRe: clistctrl question Pin
Tomasz Sowinski14-Mar-02 3:26
Tomasz Sowinski14-Mar-02 3:26 

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.