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-major-performance-boost If you search the forum for 'define tables in modules' you'll see lots of discussion on alternative ways to implement conditional models. -Jim On Thu, Jul 20, 2017 at 1:45 PM, Alex Glaros <[email protected]> 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 tables - > e.g., accounting_related_tables.py, email_related_tables.py, > inventory_related_tables.py? > > 2. does splitting models into sub files improve performance if there are > hundreds of tables? > > thanks > > Alex > > -- > 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 a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/web2py/JIiIZ_65ljU/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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.

