[web2py] Re: app slow on pythonanywhere

2017-07-19 Thread Bernardo Leon
I am using now redis for session handling on the same machine of the webserver and got rid of big fcntl.flock lock. Thank you so much for your help! El martes, 18 de julio de 2017, 23:04:33 (UTC-5), Bernardo Leon escribió: > > Thank you for your answer, Indeed I am using several ajax requests

[web2py] Re: app slow on pythonanywhere

2017-07-18 Thread Bernardo Leon
Thank you for your answer, Indeed I am using several ajax requests and I am not able to use session.forget(response) on my components since I need the session information. I have installed redis to test but now I am facing another problem that I have detailed here:

[web2py] Re: app slow on pythonanywhere

2017-07-17 Thread Leonel Câmara
That's probably caused by sessions, file based session lock the file in the filesystem until you're done with them, you can spend some time there if you do a lot of parallel ajax requests. The first step is to call session.forget(response) as soon as you can in controllers that do not

[web2py] Re: app slow on pythonanywhere

2017-07-17 Thread Bernardo Leon
I am sorry for resurrecting this post but I am facing the same problem. Using the web2py -F profile option and then reading that dump with runsnakerun I see that fcntl.flock is where more time is spent. I have disabled migrations in the appconfig.ini and in the DAL constructor but I am still

[web2py] Re: app slow on pythonanywhere

2016-09-05 Thread Ron Chatterjee
This is great. Thank you Niphlod. I promise in 6th times its finally sinking in. lol. jk:-) On Monday, September 5, 2016 at 7:12:31 PM UTC-4, Niphlod wrote: > > I think I said it at least 5 times (and there's the book >

[web2py] Re: app slow on pythonanywhere

2016-09-05 Thread Niphlod
I think I said it at least 5 times (and there's the book ). Each option has its own environment. And everything follows a logic. A) migrate on DAL sets a default for migrate for all tables

[web2py] Re: app slow on pythonanywhere

2016-09-05 Thread Ron Chatterjee
migrate_enabled = false migrate = false fake_migrate = false fake_migrate_all = false These settings are only if we don't need to update the database and use the current database. We can use these settings in the deploy mode. Am I correct? In other words, if I delete the entire

[web2py] Re: app slow on pythonanywhere

2016-09-05 Thread Scott Hunter
I found the problem; migrations weren't being disabled because, while I had the correct settings in appconfig.ini, they were not being used properly in creating the db object. - Scott On Saturday, September 3, 2016 at 1:01:39 PM UTC-4, Scott Hunter wrote: > > I have an app which runs *much*

[web2py] Re: app slow on pythonanywhere

2016-09-04 Thread Scott Hunter
I tried putting in your suggested migration settings (and reloaded); it is still spending about the same amount of time in fcntl.flock. - Scott On Sunday, September 4, 2016 at 7:27:08 AM UTC-4, 黄祥 wrote: > > for reload i think it's just for reload the configuration of web server > service

[web2py] Re: app slow on pythonanywhere

2016-09-04 Thread 黄祥
for reload i think it's just for reload the configuration of web server service (sometime it fixed some strange problem) n for the value of migrate in private/appconfig.ini i think it should be true or false e.g. *models/db.py* db = DAL(myconf.get('db.uri'), pool_size =

[web2py] Re: app slow on pythonanywhere

2016-09-04 Thread Scott Hunter
In private/appconfig.ini on PA, [db] migrate = 0; locally, it is 1. That should favor PA over local (all else being equal), yes? On Sunday, September 4, 2016 at 1:40:09 AM UTC-4, Paolo Valleri wrote: > > Have you disabled migrations? > > Paolo > > On Saturday, September 3, 2016 at 7:01:39 PM

[web2py] Re: app slow on pythonanywhere

2016-09-03 Thread Paolo Valleri
Have you disabled migrations? Paolo On Saturday, September 3, 2016 at 7:01:39 PM UTC+2, Scott Hunter wrote: > > I have an app which runs *much* slower than expected on pythonanywhere. > > I enabled the profiler, and one thing stood out: on pythonanywhere, the > function the most time was spent

[web2py] Re: app slow on pythonanywhere

2016-09-03 Thread Scott Hunter
A number of times. What is that supposed to have accomplished? On Saturday, September 3, 2016 at 3:23:56 PM UTC-4, 黄祥 wrote: > > had you already tried to reload pythonanywhere web app? > > best regards, > stifan > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: app slow on pythonanywhere

2016-09-03 Thread 黄祥
had you already tried to reload pythonanywhere web app? best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message