QuestionQ117
VerifiedTroubleshooting and Tuning Apache Spark DataFrame API Applications.The database-administrator team tells an application support engineer that a Spark application is opening too many connections to one of its PostgreSQL databases. The engineer reviews the Spark application's source code and finds that the following code reads from the PostgreSQL database:

Which code change will decrease the number of connections the Spark application makes to the PostgreSQL database?
Community Discussion