Homec4science

WebSearch: optimise can-see-hidden-MARC-tags check

Authored by Tibor Simko <tibor.simko@cern.ch> on Jul 4 2012, 02:42.

Description

WebSearch: optimise can-see-hidden-MARC-tags check

  • Optimises can-see-hidden-MARC-tags check. Before, the check was done by calling RBAC engine on-the-fly for every record. This patch moves the check onto login time and stores the result in user_info object so that it is rapidly reused at search time without further querying of the database.

    This greatly reduces the number of SQL queries on the search results pages. For an example search page, the number of SQL queries went down from about 360 to about 230.

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Jul 4 2012, 03:21
Parents
R3600:efdc154c52ac: WebSession: fix cookie issuing WRT HTTPS
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:c1c6f26ece4d: WebSearch: optimise can-see-hidden-MARC-tags check (authored by Tibor Simko <tibor.simko@cern.ch>).Jul 4 2012, 03:21