|
Hi again, I was able to greatly reduce the accesses to the database by putting in session the "user_id" and the "username" (for future uses) after the login. However, there are still too many. Seems to me that: @tg.identity.require(tg.identity.Any(tg.identity.in_group('SYSADMIN'), tg.identity.has_permission("FARMACO_REPORT"))) makes multiple accesses to user and visit_identity tables. Seems to me, that every time tg.identity is called there are 1 access to visit, 1 access to user and 2 accesses to visit_identity.
Is there a way to reduce those accesses to db? j Jose Soares wrote: I think I found the problem. I'm explicit using in my code: -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/turbogears?hl=en. For more options, visit https://groups.google.com/groups/opt_out. |
- [TurboGears] How to reduce access to database (tg-1.1.... Jose Soares
- Re: [TurboGears] How to reduce access to database... Christoph Zwerschke
- Re: [TurboGears] How to reduce access to data... Jose Soares
- Re: [TurboGears] How to reduce access to ... Christoph Zwerschke
- Re: [TurboGears] How to reduce access... jo
- Re: [TurboGears] How to reduce a... Christoph Zwerschke
- Re: [TurboGears] How to redu... Jose Soares
- Re: [TurboGears] How to ... jo
- Re: [TurboGears] How to ... Christoph Zwerschke

