Re: [SQLObject] select only specified columns
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2010-06-22 10:21:37
|
On Tue, Jun 22, 2010 at 12:09:22PM +0200, Imre Horvath wrote: > Thank you, that's what I've looking for. > In my case, I only fill details view for one record only, 30-40 columns, > it's fast enough with one-column queries too. Oops, I've forgotten - lazyColumns by itself prevents loading of columns but when you touch a row SQLObject will load all columns for the row. To load only one column also set class sqlmeta: cacheValues = False > But I wonder if it's possible to override get method to temporary switch > off lazyColumns? No. lazyColumns is taken into account when constructing the row, so it's meaningless to set it afterwards. Oleg. -- Oleg Broytman http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |