From fc88993fe17380e1943f4fc959c8611b2c71e3bd Mon Sep 17 00:00:00 2001 From: Ian Young Date: Wed, 10 Mar 2010 23:32:50 -0600 Subject: [PATCH] Creating indices on sqlite tables to drastically speed up lookups --- Db/Classes.php | 2 ++ Db/FileIncludes.php | 1 + Db/Files.php | 1 + Db/VariableTypes.php | 6 ++++++ 4 files changed, 10 insertions(+) diff --git a/Db/Classes.php b/Db/Classes.php index d95e053..5670bc3 100644 --- a/Db/Classes.php +++ b/Db/Classes.php @@ -15,11 +15,13 @@ public static function init() $db = Scisr_Db::getDb(); $create = <<exec($create); $create = <<exec($create); } diff --git a/Db/FileIncludes.php b/Db/FileIncludes.php index 107e459..db95bb4 100644 --- a/Db/FileIncludes.php +++ b/Db/FileIncludes.php @@ -15,6 +15,7 @@ public static function init() // Yes, I know this is not the most efficient or normalized. But I'm lazy. $create = <<exec($create); } diff --git a/Db/Files.php b/Db/Files.php index 8d8cd6b..8bde57e 100644 --- a/Db/Files.php +++ b/Db/Files.php @@ -19,6 +19,7 @@ public static function init() $db = Scisr_Db::getDb(); $create = <<exec($create); } diff --git a/Db/VariableTypes.php b/Db/VariableTypes.php index 9364113..2d4d46d 100644 --- a/Db/VariableTypes.php +++ b/Db/VariableTypes.php @@ -17,10 +17,16 @@ public static function init() $db = Scisr_Db::getDb(); $create = <<exec($create); $create = <<exec($create); }