Strange behavior here. On my dev machine code works, but on the
production machine I get the dreaded:
SQLite3::BusyException: database is locked INSERT INTO “comments” […]
What kind of bug could yield such behavior? It’s impossible the database
times out, there are no concurrent requests coming in, and the db is
only 150kB. Is there a possible race condition? Caching conflict?
In development mode, the DB time is less than 10ms and total time less
than 300ms with a timeout of 5000. The server is much faster than my dev
machine and loading a page on average takes less than 100ms.
Thanks for insights