Question: When writing a database application, explain the pros and cons of: a. Opening a new connection to the database every time you need to access

When writing a database application, explain the pros and cons of: 

a. Opening a new connection to the database every time you need to access the database 

b. Opening one connection to the database, and leaving it open


 When a database application accesses the database, and executes a stored procedure or query from JDBC, a ResultSet is returned. Explain why a ResultSet should be parsed into another data structure

 What is a partial dependency, and why are candidate keys useful for identifying them?

 Third Normal Form ensures that there are no transient dependencies. What does this mean?

Step by Step Solution

3.30 Rating (153 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a Opening a New Connection to the Database Every Time You Need to Access the Database Pros Resource Isolation Each operation gets its dedicated connection ensuring that one operations performance or i... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!