Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 570 Bytes

File metadata and controls

23 lines (17 loc) · 570 Bytes

Supabase Python Upload

This was created in order to upload a large CSV to Supabase. I tried using a direct connetion to Supabase through psql but I had no idea what was being run or not and it also failed after 30 minutes on 2k records so I decided to just write a script to make it easier to see what was going on.

Sample ENV

DB_HOST=
DB_PORT=
DB_NAME=
DB_USER=
DB_PASSWORD=

How to run

  1. Start your virtual env
  2. Install requirements.txt
  3. python main_using_supabase.py

Note To Self:

Use main_using_supabase.py. It was 5x faster than psyopg