Problem/Motivation

Noticed db_table_exists() was getting called twice from output in devel query log for ECKCache.

Proposed resolution

Static cache the result on the class.

Remaining tasks

User interface changes

API changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joelpittet’s picture

Issue tags: +Performance
FileSize
1.13 KB

Save every millisecond;)

pounard’s picture

Actually it should never ever try to do any db_table_exists().

pounard’s picture

Anyway, looking at the code, there is no way the table could not exist, especially if all updates have been run, moreover, some cache backends don't even actually care about having a table or not, my guess is that this check just should be removed.

pounard’s picture

Category: Task » Bug report
Status: Active » Needs review
FileSize
1.11 KB

A live db_table_exists() is a bug, runtime code should never ever do that.

Here is a cleanup patch.

joelpittet’s picture

Status: Needs review » Reviewed & tested by the community

Thanks I was thinking about that yesterday actually.

eric.napier’s picture

Status: Reviewed & tested by the community » Fixed

fixed.

  • eric.napier committed 5d2b211 on 7.x-2.x authored by pounard
    Issue #2473691 by joelpittet, pounard: Prevent ECKCache from doing more...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.