The model for a given project exists within a Pyramid application, 
`foo_pyramid`.  Other services in Celery and Twisted have been integrated 
against it with almost no trouble.

The one bit of trouble is that some convenience methods on the ORM classes 
implemented for Pyramid are triggering a lot of unused/needed/wanted 
dependency imports, and I could use more memory for Redis right now.  Based 
on the number of workers and some estimates, it looks like Redis is cheated 
out of 1.5GB of memory.

I spent a few hours today splitting the model and support functions out 
into it's own package `foo_models` and have hit a wall.  31 of 200+ ORM 
classes will need a function (under Pyramid) that leverages 
`foo_pyramid.lib`.  

Has anyone worked on a model that is used in multiple contexts, and is then 
customized for one or more settings?   I have a handful of ideas, but if 
anyone has been through this I'd rather learn from your mistakes.

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
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.

Reply via email to