9 messages in com.googlegroups.sqlalchemy[sqlalchemy] Re: Sort from a related ...
FromSent OnAttachments
Kless26 May 2008 03:26 
Michael Bayer26 May 2008 07:49 
Kless26 May 2008 08:49 
Michael Bayer26 May 2008 11:04 
Kless26 May 2008 12:13 
Jeff Putsch26 May 2008 14:34 
Kless26 May 2008 15:56 
Jeff Putsch26 May 2008 16:06 
Michael Bayer26 May 2008 16:12 
Subject:[sqlalchemy] Re: Sort from a related column [Solved]
From:Kless (jona@googlemail.com)
Date:05/26/2008 03:56:30 PM
List:com.googlegroups.sqlalchemy

I am simply going to sort using the fields of a same table, so my mapper is now:

----------- mapper(ConstantType, constant_type_table, order_by=constant_type_table.c.name )

mapper(Constant, constant_table, properties={'rel_constant_type': relation(ConstantType)}, order_by=[constant_table.c.type, constant_table.c.name] )

-----------

I prefer don't use joints at possible -for greater performonce-.

On 26 mayo, 22:35, Jeff Putsch <jdpu@gmail.com> wrote:

Kless: A summary of your final solution would be helpful to newbies like me.