lib / pq

Pure Go Postgres driver for database/sql
https://pkg.go.dev/github.com/lib/pq
MIT License
9.09k stars 911 forks source link

How to update many records? #951

Open fwhezfwhez opened 4 years ago

fwhezfwhez commented 4 years ago

About 1000000 records need to update, each is update task_procedure set times = times + ? where user_id=?.

Will 1000000 times updating cause too many connections?