I have a web2py app hosted on a paid PA account, whose performance is drastically slower than when I run it locally. When I ran it with the profiler enabled, I discovered that it was spending a large portion of its time in fcntl.flock, much large (in absolute and percentage terms) than locally. This is occurring within the execution of the db model (with migration disabled). I'm using SQLite and my account only has a few web workers, but the cases I profiled were where there was an isolated request.
I realize this may be more of a web2py question than a PA question, but I was wondering if anyone had any insight into anything about how PA accounts work that might cause this and, more importantly, what I might be able to do about it.
- Scott