View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003903 | mantisbt | sql | public | 2004-05-29 18:27 | 2004-07-07 18:55 |
Reporter | grangeway | Assigned To | vboctor | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | git trunk | ||||
Fixed in Version | 0.19.0a1 | ||||
Summary | 0003903: optimisation of lang_load_default() | ||||
Description | lang_load_default currently does a join on user/user_prefs tables to load default language. For $t_cookie to be set to a valid user, auth_get_current_user_id() should also be set. Therefore, it appears we should be able to remove the join from this query, by modifying lines 78-81 of lang_api to read: $query = "SELECT DISTINCT language and removing | ||||
Tags | No tags attached. | ||||
In fact, it appears the complete implementation, eliminating 1 additional db query per page could be: |
|
function lang_load_default() {
} |
|
Implemented in CVS and will be included in next release. Thanks to Glen Starrett patch and grangeway. |
|