httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 57299] New: mod_session_dbd should not make a database call per request
Date Tue, 02 Dec 2014 22:17:45 GMT
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


Mime
View raw message