httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 57299] New: mod_session_dbd should not make a database call per request
Date Tue, 02 Dec 2014 22:17:45 GMT

            Bug ID: 57299
           Summary: mod_session_dbd should not make a database call per
           Product: Apache httpd-2
           Version: 2.4.6
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: mod_session_dbd

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:

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:
For additional commands, e-mail:

View raw message