Something on our site was invoking tvi_load_settings(1) hundreds of times per page load (we have a lot of big vocabularies). Added a static variable to cache settings when called for the same $xid and $type multiple times on the same page hit.

Comments

DanaRoseRoss’s picture

Status: Active » Needs review
StatusFileSize
new1017 bytes

Patch for above

andypanix’s picture

StatusFileSize
new60.41 KB
new78.27 KB

Similar problem on a recent site I've developed. Your patch resolved the issue (see attached images). Thanks

dsobon’s picture

Unfortunately for me, patch did not change query count at all.

So I decided to have a stab at the problem and obtained the results I needed.

With devel module enabled, on 2-5 page reloads for /users/admin page:
- no-patch: Executed 1109 queries in 414.27 milliseconds.
- my-patch: Executed 174 queries in 91.06 milliseconds.

dsobon’s picture

StatusFileSize
new2.38 KB

Patch.

duaelfr’s picture

Status: Needs review » Closed (won't fix)

Closing old issues. Feel free to reopen if needed.

avpaderno’s picture

Issue summary: View changes
Issue tags: -Performance static +Performance