Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-2028

Reduce number of database connection creations during PG tests

    XMLWordPrintable

Details

    Description

      I put in a quick System.out.println() statement into the constructor of PostgresConnection, and about 8! times a connection is created up to the first assertion in RecordsStreamProducerIT.shouldReceiveChangesForInsertsWithDifferentDataTypes(). This should be limited as much as possible, e.g. by keeping open the connection used on the test side of things.

      Attachments

        Activity

          People

            mcimbale@redhat.com Martin Cimbalek
            gunnar.morling Gunnar Morling
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: