Hacker News new | past | comments | ask | show | jobs | submit login

You'll just end up looping until your retry limit is reached. SQLite just isn't very good at upgrading read locks to write locks, so the appropriate fix really is to prevent that from happening.



I've needed the exact same loop on (an older) Postgres to stop production from hitting transient errors. It's fundamental to the concept of concurrent interactive transactions.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: