B
bigbinc
I dont know what the type of connection is called, but I know it is
the worst kind. Through a servlet, lets say I open a oracle 9.2
connection, run the query and then close the connection, will this
hurt the oracle server in terms of performance. I know this is the
least efficient way to run oracle queries but everybody does it. I
read somewhere that you can open the database connection at the start
of a session and then close the connection at the end of the session.
So the question, how much am I hurting the oracle server by the
one-time-hit-connection, if I have 10-20 users on the servlet hours at
a time. I have been doing it in asp for years.
pseduo-code:
goConnection() {
conn
try {
openconnection()
runquery();
getdata();
conn.close();
} catch() {
conn.close();
} finally() {
conn.close();
}
}
the worst kind. Through a servlet, lets say I open a oracle 9.2
connection, run the query and then close the connection, will this
hurt the oracle server in terms of performance. I know this is the
least efficient way to run oracle queries but everybody does it. I
read somewhere that you can open the database connection at the start
of a session and then close the connection at the end of the session.
So the question, how much am I hurting the oracle server by the
one-time-hit-connection, if I have 10-20 users on the servlet hours at
a time. I have been doing it in asp for years.
pseduo-code:
goConnection() {
conn
try {
openconnection()
runquery();
getdata();
conn.close();
} catch() {
conn.close();
} finally() {
conn.close();
}
}