Relational database working example with PostgreSQL and Java
This program assumes that schema named "ecom" exists in the PostgreSQL database. DB properties including the schema name can be updated in "db.properties" file.
- The program will create tables like Users, Products, Reviews, Orders, OrderDetails.
- Insert randomly generated data into the tables.
- Test the performance of various queries/operations with running multiple threads randinging from 1-10 each time re-initializing the DB. Operations will be selected randomly based on predefined probability.
run ./gradlew run to execute a program.
Required dependencies include PostgreSQL Java Driver, and JFairy library