Hi
Let's get straight to my question:
Consider this url: 
*http://mysite.com/customers/137/orders?year=2015&month=5*
Now in pyramid traversal mechanism, how many queries will be run against 
database?
I guess it would be three:
1. */customers* :                             select * from customers
2. */customers/137* :                         select * from customers where 
id = 137
3. */customers/137/**orders?year=2015&month=5: *select * from orders where 
customer_id = 137 and year=:year and month=:month

If so is there anyway to reduce the db queries down to one last query?
Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to