Board index » delphi » TechTips: Handling database connections for multiple threads
Sundial Services
Delphi Developer |
Sun, 04 Dec 2005 07:17:32 GMT
TechTips: Handling database connections for multiple threads
Although it's really not the best way to handle multiple requests, many
programs nonetheless /do/ take the "flaming arrow approach" of creating a new thread for every request, and shooting it up in the air to fend for itself. Where this wasteful strategy really comes home to roost is with database Try adjusting the application to introduce the notion of a pool of database You can sometimes further refine this technique, if the scope of work that Each thread must be carefully designed, e.g. with try..finally clauses, so ---------------------------------- |