On 12 Feb., 18:14, Gustavo Narea <[email protected]> wrote: > On Thursday February 12, 2009 18:04:01 jorge.vargas wrote: > > > One thing I am concern about all the solutions above is the db hits, > > will a new evaluation of the same predicate hit the db, or the check > > will return from the environ dict? > > The groups and permissions of the current user are loaded once on every > request and cached, because repoze.what v1 works as a repoze.who metadata > provider. > > Because v2 will have its own middleware and will be repoze.who independent, > such data will be loaded on demand and cached.
You might consider some eagerload options (if you do not already do so) to avoid many small requests. Michael > -- > Gustavo Narea <http://gustavonarea.net/>. > > Get rid of unethical constraints! Get freedomware:http://www.getgnulinux.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/turbogears-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
