Bill
Bill

Reputation: 610

react node csv postgres

I am trying to process a csv file from react to postgres using node and express. What is the recommended way of doing this? Should I first upload the file onto the node server then do bulk insert (copy) into postgres or parse the csv in react and do the insert into postgres in the post request? Thanks!

Upvotes: 0

Views: 237

Answers (1)

Bill
Bill

Reputation: 610

Thanks for the replies. I ended up uploading the file and used an extension call pg-format to do the bulk insert.

Upvotes: 0

Related Questions