Homec4science

WebSession: run isGuestUser() on DB slave

Authored by Tibor Simko <tibor.simko@cern.ch> on Jul 3 2012, 15:00.

Description

WebSession: run isGuestUser() on DB slave

  • Runs isGuestUser() on DB slave, except in webinterface handler where it is better to run it on DB master.
  • Removes unnecessary call to isGuestUser() in places where we have access to user_info, because user_info already contains information about whether the user is a guest or not. So there is no need to query DB in these places. (Note that this speed-up technique should be applied in other Invenio modules as well.)

Details

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:f0f34d2c1bfd: WebSession: run isGuestUser() on DB slave (authored by Tibor Simko <tibor.simko@cern.ch>).Jul 3 2012, 16:37