"Script" that imports data from csv into postgres.
- openjdk-21
- Hikari-CP
- pure jdbc, no ORM
- apache.commons-csv
No tests. Real men test in production 🤠 (I was lazy and tested right away).
Unfortunately I was too lazy to create configurable solution, so I just manually changed required properties in the code🤠🦥
Existing data import solutions did not meet my needs, so I wrote this program for my specific use-case only.
- Unable to import data from CSV and specify date format for columns.
Bug ticket still not resolved in 2025! 😀 https://youtrack.jetbrains.com/issue/DBE-7569/Respect-timestamp-date-time-format-for-import-export-or-allow-to-configure-it-on-thy-fly
- Unable to specify date-format for csv column.
- Fails when encountering inconsistent data.
Supports specifying a date format, making it almost perfect for my case. But I faced multiple OutOfMemory errors when I was trying to tune performance for importing:
- I was trying different values for batch size (100,250,500,1000).
- Enabling/disabling "create new connection" Additionally, I had no control over invalid records in CSV file.