L
LeAnne
my application polls a database every X seconds.
Some times X = 0.5 seconds (500 milli seconds)
The way the code has been written, the SQL connection is opened & closed
during every poll.
Is this effecient?
Should i be leaving the connection opened & then polling the database every
500 milli seconds?
Or will the connection be simply picked up from the connection pool & hence
there isn't a drop in performance.
And also, there there's a message to be processed, then the processing of
this message would take 1-5 seconds, not longer.
What should i do?
Some times X = 0.5 seconds (500 milli seconds)
The way the code has been written, the SQL connection is opened & closed
during every poll.
Is this effecient?
Should i be leaving the connection opened & then polling the database every
500 milli seconds?
Or will the connection be simply picked up from the connection pool & hence
there isn't a drop in performance.
And also, there there's a message to be processed, then the processing of
this message would take 1-5 seconds, not longer.
What should i do?