#8409 Speed up anonymous user handling

v1.14.0
closed
General
nobody
2022-09-23
2022-02-04
No

For every logged-out request, authenticate_request does a User query with username None, which is pointless and never finds anything.

It also calls M.User.anonymous() which maybe could be in memory instead of a database lookup? Could speed up lots of other calls to anonymous() too.

Discussion

  • Dave Brondsema

    Dave Brondsema - 2022-02-04
    • status: open --> review
     
  • Dave Brondsema

    Dave Brondsema - 2022-02-04

    db/8409

     
  • Guillermo Cruz - 2022-02-07

    merged

     
  • Guillermo Cruz - 2022-02-07
    • status: review --> closed
     
  • Dave Brondsema

    Dave Brondsema - 2022-09-23
    • Milestone: unreleased --> v1.14.0
     

Log in to post a comment.