diff options
| author | 2013-06-15 17:36:42 +0200 | |
|---|---|---|
| committer | 2013-06-15 17:36:42 +0200 | |
| commit | 8cf9ee76504d2eabd969aff1760b4edb59dfb358 (patch) | |
| tree | 54bf5af4f68dc2825d61d14aec29504e9787608e /app/models | |
| parent | fafddf2a20748cdbda1f974338528c8e488f4b11 (diff) | |
Fix issue #69 : ajout d'une option pour optimiser la BDD + correction bug script actualisation lorsque connexion paramétrée
Diffstat (limited to 'app/models')
| -rwxr-xr-x | app/models/Entry.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/Entry.php b/app/models/Entry.php index 050407390..6af3178ee 100755 --- a/app/models/Entry.php +++ b/app/models/Entry.php @@ -509,6 +509,12 @@ class EntryDAO extends Model_pdo { return $res[0]['count']; } + + public function optimizeTable() { + $sql = 'OPTIMIZE TABLE entry'; + $stm = $this->bd->prepare ($sql); + $stm->execute (); + } } class HelperEntry { |
