Skip to content

Relational database working example with PostgreSQL and Java

License

Notifications You must be signed in to change notification settings

abhishek-inamdar/java-postgresql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

java-postgresql

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.

Program behavior

  1. The program will create tables like Users, Products, Reviews, Orders, OrderDetails.
  2. Insert randomly generated data into the tables.
  3. 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.

Program Execution (Gradle project)

run ./gradlew run to execute a program.

Dependencies

Required dependencies include PostgreSQL Java Driver, and JFairy library

Releases

No releases published

Packages

No packages published

Languages