You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2014/12/02 23:17:45 UTC

[Bug 57299] New: mod_session_dbd should not make a database call per request

https://issues.apache.org/bugzilla/show_bug.cgi?id=57299

            Bug ID: 57299
           Summary: mod_session_dbd should not make a database call per
                    request
           Product: Apache httpd-2
           Version: 2.4.6
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: mod_session_dbd
          Assignee: bugs@httpd.apache.org
          Reporter: christoph.rabel@gmail.com

Using mod_session_dbd is extremely inefficient, because session_dbd_load in
mod_session_dbd.c fetches the session_record once per request from the
database. Since there is also a "Cache-Control no-cache" header added, it's
even worse than for normal pages where stylesheets, js, and so on are cached.
For reference: https://issues.apache.org/bugzilla/show_bug.cgi?id=54608

If there are 16 "items" (images, stylesheets, ...) on a page, the database is
queried at least 17 times (16 plus one for the page itself).

This is really annoying. So, in addition to storing it in the notes (
apr_table_setn(m->notes, note, (char *)zz);) I propose to store it in cache
similar to mod_authn_dbd.c if it is available.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org