rjaltman / dogu

DOGU is a site where students and organizations can add technical project ideas in hopes of finding class project teams to work on them, and students can find projects to work on and teams to work with for class assignments.
https://dogu.herokuapp.com/
MIT License
0 stars 0 forks source link

Transactions are stepping on each other #25

Open ddsnowboard opened 5 years ago

ddsnowboard commented 5 years ago

If you send two requests too fast, one will still be "in progress" a little and the second will fail immediately. It has something to do with threading and stuff and only happens on heroku.

I think if we wrap all our database functions in with conn: or just say conn.commit() after we're done with the database, it will be fixed.

ddsnowboard commented 5 years ago

It only happens when queries fail, so maybe it's not that big of a deal.