I'm initializing my db in the following way.

     if request.env.HTTP_HOST == '127.0.0.1:8000':     
        db = DAL("postgres://...server details...", pool_size = 1, 
check_reserved=['postgres'], 
                 lazy_tables=True, fake_migrate_all=False)
     else:                                         
        db = DAL("postgres://... localhost: port...", pool_size = 10, 
check_reserved=['postgres'], lazy_tables = True)

When developing on localhost, access to the remote db is very slow - it 
takes ages for a page to load. Is it possible to tweak the above 
parameters, or change anything in the code to speed things up? Thanks.

-- 
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 because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to