diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-12 06:58:43 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-12 06:58:43 +0000 |
commit | 9ce1c6339f7f303e533b0728452cac79367efc38 (patch) | |
tree | 3e1c5466ff1d125a29b2d311c2bf7129b7b8c185 /includes/database/sqlite | |
parent | 8bd39cd9813ac4c1253867191e132d903e7f158b (diff) | |
download | brdo-9ce1c6339f7f303e533b0728452cac79367efc38.tar.gz brdo-9ce1c6339f7f303e533b0728452cac79367efc38.tar.bz2 |
#550124 by c960657, catch, and Crell: Remove prepared statement caching, which was a nice idea, but uses up tons of memory without any tangible performance benefits.
Diffstat (limited to 'includes/database/sqlite')
-rw-r--r-- | includes/database/sqlite/database.inc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/includes/database/sqlite/database.inc b/includes/database/sqlite/database.inc index f175732f7..17d9034a9 100644 --- a/includes/database/sqlite/database.inc +++ b/includes/database/sqlite/database.inc @@ -161,10 +161,7 @@ class DatabaseConnection_sqlite extends DatabaseConnection { return isset($specials[$operator]) ? $specials[$operator] : NULL; } - public function prepareQuery($query, $cache = TRUE) { - // It makes no sense to use the static prepared statement cache here, - // because all the work in our implementation is done in - // DatabaseStatement_sqlite::execute() and cannot be cached. + public function prepareQuery($query) { return $this->prepare($this->prefixTables($query)); } |