summaryrefslogtreecommitdiff
path: root/includes/database/sqlite
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-12 06:58:43 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-12 06:58:43 +0000
commit9ce1c6339f7f303e533b0728452cac79367efc38 (patch)
tree3e1c5466ff1d125a29b2d311c2bf7129b7b8c185 /includes/database/sqlite
parent8bd39cd9813ac4c1253867191e132d903e7f158b (diff)
downloadbrdo-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.inc5
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));
}