1
0
mirror of synced 2025-12-30 12:04:43 -05:00
Files
airbyte/tools/bin/make-big-schema.sh
Michael Siega 84f0bacaa2 support large schema discovery (#17394)
* support large schema discovery

* update generic source tests to handle new approach to schema discovery

* readability improvements related to schema discovery and large schema support

* update internal ScheduleHandler method name

* update source tests per new schema discovery interface
2022-10-05 20:33:43 +02:00

11 lines
682 B
Bash
Executable File

# This script creates lots of tables in a database. It is used to test the handling of large schemas.
# Pre-requisite: follow https://airbyte.com/tutorials/postgres-replication to create the source container.
for i in {1..15000}
do
docker exec -it airbyte-source psql -U postgres -c "CREATE TABLE users$i(id SERIAL PRIMARY KEY, col1 VARCHAR(200));";
docker exec -it airbyte-source psql -U postgres -c "INSERT INTO public.users$i(col1) VALUES('record1');";
docker exec -it airbyte-source psql -U postgres -c "INSERT INTO public.users$i(col1) VALUES('record2');";
docker exec -it airbyte-source psql -U postgres -c "INSERT INTO public.users$i(col1) VALUES('record3');";
done