[web2py] Re: web2py deployment strategies

2017-07-21 Thread pbreit
There are lots of easy ways to optimize for scaling up. Spend your energy on end user functionality until you run into issues. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Re: web2py deployment strategies

2017-07-21 Thread Jim S
Only if you're using conditional models. -Jim On Thursday, July 20, 2017 at 6:00:45 PM UTC-5, Alex Glaros wrote: > > any performance advantage to moving controller files out of default.py > into their own file? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - htt

[web2py] Re: web2py deployment strategies

2017-07-20 Thread Alex Glaros
any performance advantage to moving controller files out of default.py into their own file? -- 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

[web2py] Re: web2py deployment strategies

2017-07-20 Thread Anthony
On Thursday, July 20, 2017 at 2:45:09 PM UTC-4, Alex Glaros wrote: > Jim, regarding "That said, if you've got 500 tables in your app, you probably > don't want to use the web2py default table instantiation on every request." > > > 1. did you mean to put db.py model tables into categorized sub ta

Re: [web2py] Re: web2py deployment strategies

2017-07-20 Thread Jim Steil
Yes, the goal is to only load the table definitions that you need. http://web2py.com/books/default/chapter/29/04#markmin_conditional_models we use a form of conditional models along with lazy tables -> http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Lazy-Tables--a-maj

[web2py] Re: web2py deployment strategies

2017-07-20 Thread Alex Glaros
Jim, regarding "That said, if you've got 500 tables in your app, you probably don't want to use the web2py default table instantiation on every request." 1. did you mean to put db.py model tables into categorized sub tables - e.g., accounting_related_tables.py, email_related_tables.py, invento

Re: [web2py] Re: web2py deployment strategies

2017-07-20 Thread Jim Steil
Our redis server only has 8GB of ram. We load balance primarily for redundancy, not load. We only have about 100 users actively using our system. It is an internal app for our business. -Jim On Thu, Jul 20, 2017 at 11:46 AM, Chinh Dang wrote: > Our app starts small maybe around 50 tables max

Re: [web2py] Re: web2py deployment strategies

2017-07-20 Thread Chinh Dang
Our app starts small maybe around 50 tables max, but may grow as more features are being added. Planning to use load balancing and failover. Since you use redis, can you give me a ballpark on the memory usage for the amount of traffic you have? My concern is when the redis host runs out of memory.

[web2py] Re: web2py deployment strategies

2017-07-20 Thread Jim S
My philosophy is to not optimize until you need to. That said, if you've got 500 tables in your app, you probably don't want to use the web2py default table instantiation on every request. Any idea what you're traffic will be like? Are you going to load balance? Our main app has over 150 tab