[SQLObject] select only specified columns
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Imre H. <ble...@gm...> - 2010-06-22 09:20:49
|
Hi everyone! Is it possible to select only a few columns from a table? My primary problem is speed when i select all rows from a big table (>1 mill. record). But i only need 2-3 columns from it. I think it's because all other columns & related objects are selected. FYI: The exact scenario is: Customers table: id, name, lots of other data. For a master/detail form, i need to fill the list with id and name only. When the user selects a row in the list, i get the customer object via id, and fill the details form. Thanks for advance: Imre Horvath |