Thank you both for your help! I tend to using 2 select-statements, because the most frequent use case will be a user who views the overview-page (containing several blog posts, possibly summarized) and then selecting a specific one to read, including comments. Thus, the blog post will most probably be in the cache already and I only need to query the comments by parent_id, without a join.
Cheers, Martin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" 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/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---
