On Aug 25, 2:19 pm, Mike Orr <[email protected]> wrote: > This may not directly relate to what you're saying, but there are > several ways to organize a model.
Absolutely. but, putting on my marketing and product management hats for a second, I would refer to use-cases of consumers. SO I would say that my point is addressing the transition area between the ORM and SqlLevel that you described. Most people use Django, Rails, SqlAlchemey etc because it simplifies a lot of their work. They get to use the ORM to bootstrap building their project, and use all the relations and lazy-loading/eager- loading of the ORM to page through the results. They try to never touch the sql and the orm's classes are tightly coupled on the view and control logic. At some point, this gets to be too difficult. You've got too many complex relationships, or you're stressing the database by pulling down too much unnecessary info or complex joins / views. Trying to code within these constraints becomes painful. You find that a relatively simple thing becomes difficult, because instead of spending the bulk of your work directly addressing your problem, you're spending it working around the framework to reclassify your problem as something that it can handle. Eventually you probably end up in a situation where you just suck out and cache raw IDs, and then have a routine that stores/fetches/assembles documents for a distributed k/v store like memcached or couchedb. With Pylons, that migration is relatively quick. SqlAlchemy lets you mix raw sql with the orm and just pull the data you need, or even just the ids. With Rails, Django, etc, stuff is not always so simple. So, IMHO, I think that is where Pylons' strength lies. There is a little bit more work to get up & running than a django app -- and you don't have all the same convenience methods and magic utilities. But, and this is the huge but, when you get to the point that you can no longer have your app function like a *name-your-framework-here* application , Pylons offers a range of flexibility that you just don't have in other systems. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
