On Tuesday, February 16, 2016 at 4:11:38 PM UTC-5, Mike Bayer wrote: > > Depending on what you are trying to do, you'd probably want to look into > using automap and/or reflection for only the subset of tables that you > actually need; look at the "only" param > > http://docs.sqlalchemy.org/en/rel_1_0/core/metadata.html?highlight=reflect#sqlalchemy.schema.MetaData.reflect.params.only > > for that. The columns reflected and/or mapped within each Table can be > limited also but you need a little more code for that. Work on getting > connected first :). >
You could also use sqlacodegen (https://pypi.python.org/pypi/sqlacodegen/) to only reflect once -- generating the python models for you. Then you could split the python models into a series of files that you import as needed to cut-down on in-memory size. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.