Il 17/03/15 07:52, Johann Spies ha scritto:
> What I do is to create a view or "create table as (select...)" and
> then define a table in the controller to correspond to the view or
> table and then use the grid to show the data in the view/table.  If
> your query is one that will be repeated a lot of times you can make
> use of "materialized views"  in PostgreSQL 9.4.
>
> Regards
> Johann
Sometimes I adopted this solution too and it works very well.
Just remember to use migrate parameter set to False defining the table
that describe your view.

    M.

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to