Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-17294

Using "DataSource" instead of "DriverManager" to get connection in JDBC connector

    XMLWordPrintableJSON

Details

    Description

      I noticed that JDBC connector using DriverManager to get connection, but DataSource is encouraged now. We should using DataSource instead of DriverManager.

      About the DriverManager vs DataSource, see https://stackoverflow.com/questions/15198319/why-do-we-use-a-datasource-instead-of-a-drivermanager.

      Some implementations of DataSource maybe we can use : alibaba durid, apache dbcp

      And we should introduce connection pool to get more performance.

      Attachments

        Activity

          People

            Unassigned Unassigned
            wanglijie Lijie Wang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: