pardon, is this function is cached? on which side database, views, or 
function?
*modules/test_report.py*
@cache.action(time_expire = cache_time_expire, cache_model = cache_model, 
quick = cache_quick, prefix = cache_prefix) *# cache function, isn't it?*
def report_0(cache_db, print_controller):
rows_currency = db(db.currency.id > 0).*iterselect*(cache = cache_db, 
cacheable = True) *# cache query result, isn't it?*
d = dict(rows_currency = rows_currency, print_controller = print_controller)
return response.render(d) *# cache view, isn't it? not sure bout this one, 
because it will contain another nested loop in the views part*

in my previous posted i cut the views part because it contain the nested 
loop of the result of rows_currency e.g. (select the selling transaction, 
buying transaction, product, customer and customer account base on the 
result of the currency table), no jquery involved in the views, i'll posted 
the views part if still not clear

is iterselect result is not cached while the select result is cached? the 
reason i use iterselect is faster than select, pls correct me if i'm wrong

thx n best regards,
stifan

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to