Models are a very special web2py feature, but they like as scripts running on every request. Now with modules we can improve web2py performance with a more Pythonic code base.
If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!
Models are a very special web2py feature, but they like as scripts running on every request. Now with modules we can improve web2py performance with a more Pythonic code base.
0
rochacbruno 12 years ago
That is just an example, for better result, it is nice to have a DataBase class to define db, it should use Singleton to insure only one db instance defined.
replies (1)