From 48ad15407987973cde261ec7a05e866fc71aca76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 9 Feb 2016 08:27:03 +0100 Subject: [PATCH] Documentation --- GRDB/Core/Database.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/GRDB/Core/Database.swift b/GRDB/Core/Database.swift index 507ebe762..ca0995785 100644 --- a/GRDB/Core/Database.swift +++ b/GRDB/Core/Database.swift @@ -596,6 +596,11 @@ extension Database { public func clearSchemaCache() { preconditionValidQueue() primaryKeyCache = [:] + + // We do clear updateStatementCache and selectStatementCache despite + // the automatic statement recompilation (see https://www.sqlite.org/c3ref/prepare.html) + // because the automatic statement recompilation only happens a + // limited number of times. updateStatementCache = [:] selectStatementCache = [:] }