Click here to Skip to main content
15,920,576 members
Home / Discussions / C#
   

C#

 
AnswerRe: althamda thanks a lot Pin
mohd imran abdul aziz19-Dec-06 3:21
mohd imran abdul aziz19-Dec-06 3:21 
AnswerRe: althamda thanks a lot Pin
User 665819-Dec-06 7:09
User 665819-Dec-06 7:09 
QuestionDataGridView initialisation Pin
~~~Johnny~~~19-Dec-06 2:27
~~~Johnny~~~19-Dec-06 2:27 
AnswerRe: DataGridView initialisation Pin
Eitsop19-Dec-06 5:35
Eitsop19-Dec-06 5:35 
Questioni am a beginner in c# please help me Pin
nima136319-Dec-06 2:14
nima136319-Dec-06 2:14 
AnswerRe: i am a beginner in c# please help me Pin
althamda19-Dec-06 2:17
althamda19-Dec-06 2:17 
QuestionMySQL persisent connection Pin
wedtm19-Dec-06 1:55
wedtm19-Dec-06 1:55 
AnswerRe: MySQL persisent connection Pin
Pete O'Hanlon19-Dec-06 2:05
mvePete O'Hanlon19-Dec-06 2:05 
Keeping a connection open for a long time is a very bad idea. It reduces the scalability of sites, as well as leading you to rely on connections being open when this is not necessarily the case.

Suppose that your application opens a connection and then does some work before attempting to save to the database. In the meantime, MySQL goes down and then comes back up. When you attempt to save, the connection will not be open - you will only think that it is. The first hit that you do to the database will then fail.

I would be surprised if the connections to the database weren't pooled, in which case you wouldn't always be creating a new connection. Instead, you would be pulling a connection out of the pool which is not very expensive at all.


the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer

Deja View - the feeling that you've seen this post before.

GeneralRe: MySQL persisent connection Pin
wedtm19-Dec-06 21:46
wedtm19-Dec-06 21:46 
QuestionAdding SharePoint Presence to Webcontrols TreeView? Pin
Scholesy1819-Dec-06 1:53
Scholesy1819-Dec-06 1:53 
Questionlinks between Matlab and C# Pin
charchabil0319-Dec-06 1:39
charchabil0319-Dec-06 1:39 
AnswerRe: links between Matlab and C# Pin
Paul Conrad25-Dec-06 18:31
professionalPaul Conrad25-Dec-06 18:31 
QuestionThreading query Pin
deep719-Dec-06 1:04
deep719-Dec-06 1:04 
AnswerRe: Threading query Pin
Pete O'Hanlon19-Dec-06 1:24
mvePete O'Hanlon19-Dec-06 1:24 
GeneralRe: Threading query Pin
deep719-Dec-06 1:36
deep719-Dec-06 1:36 
GeneralRe: Threading query Pin
Pete O'Hanlon19-Dec-06 2:02
mvePete O'Hanlon19-Dec-06 2:02 
AnswerRe: Threading query Pin
althamda19-Dec-06 1:24
althamda19-Dec-06 1:24 
GeneralRe: Threading query Pin
deep719-Dec-06 1:38
deep719-Dec-06 1:38 
QuestionCode to convert Pin
quiteSmart19-Dec-06 1:01
quiteSmart19-Dec-06 1:01 
AnswerRe: Code to convert Pin
Pete O'Hanlon19-Dec-06 1:21
mvePete O'Hanlon19-Dec-06 1:21 
GeneralRe: Code to convert Pin
quiteSmart19-Dec-06 1:28
quiteSmart19-Dec-06 1:28 
GeneralRe: Code to convert Pin
Pete O'Hanlon19-Dec-06 2:33
mvePete O'Hanlon19-Dec-06 2:33 
GeneralRe: Code to convert Pin
quiteSmart19-Dec-06 2:39
quiteSmart19-Dec-06 2:39 
GeneralRe: Code to convert Pin
ednrgc19-Dec-06 2:34
ednrgc19-Dec-06 2:34 
QuestionHow to modify a PDF formular, which is already created. [modified] Pin
shfaye19-Dec-06 0:49
shfaye19-Dec-06 0:49 

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.