* Default scaffold to use adaptive streaming config * Switch more connectors to use adaptive streaming config * Bump version for cockroach db * Bump version for db2 * Bump mssql version * Bump mysql version * Bump oracle version * Bump postgres version * Bump redshift version * Bump snowflake version * Bump tidb version * auto-bump connector version * Fix db2 findbug issue * auto-bump connector version * auto-bump connector version * auto-bump connector version * auto-bump connector version * Fix more findbug issues * auto-bump connector version * auto-bump connector version * auto-bump connector version * Fix findbug issue for mysql-strict-encrypt * Fix findbugs issue for oracle source * auto-bump connector version * Remove suppress warnings annotation * Fix oracle encrypt tests * Fix oracle encrypt acceptance test Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
Postgres Source
Performance Test
To run performance tests in commandline:
./gradlew :airbyte-integrations:connectors:source-postgres:performanceTest [--cpulimit=cpulimit/<limit>] [--memorylimit=memorylimit/<limit>]
In pull request:
/test-performance connector=connectors/source-postgres [--cpulimit=cpulimit/<limit>] [--memorylimit=memorylimit/<limit>]
cpulimit: Limit the number of CPUs. The minimum is2. E.g.--cpulimit=cpulimit/2.memorylimit: Limit the size of the memory. Must include the unit at the end (e.g.MB,GB). The minimum size is6MB. E.g.--memorylimit=memorylimit/4GB.- When none of the CPU or memory limit is provided, the performance tests will run without memory or CPU limitations. The available resource will be bound that those specified in
ResourceRequirements.java.
Use Postgres script to populate the benchmark database
In order to create a database with a certain number of tables, and a certain number of records in each of them, you need to follow a few simple steps.
- Create a new database.
- Follow the TODOs in 3-run-script.sql to change the number of tables, and the number of records of different sizes.
- On the new database, run the following script:
cd airbyte-integrations/connectors/source-postgres psql -h <host> -d <db-name> -U <username> -p <port> -a -q -f src/test-performance/sql/1-create-copy-tables-procedure.sql psql -h <host> -d <db-name> -U <username> -p <port> -a -q -f src/test-performance/sql/2-create-insert-rows-to-table-procedure.sql psql -h <host> -d <db-name> -U <username> -p <port> -a -q -f src/test-performance/sql/3-run-script.sql - After the script finishes, you will receive the number of tables specified in the script, with names starting with test_0 and ending with test_(the number of tables minus 1).