[entropy.db] EntropyRepository.createAllIndexes: call "ANALYZE" stmt after indexes creation

This commit is contained in:
Fabio Erculiani
2010-09-22 20:29:33 +02:00
parent e62859c6e1
commit 32f251feae
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -4801,6 +4801,7 @@ class EntropyRepository(EntropyRepositoryBase):
self._createProvidedLibsIndex()
self._createDesktopMimeIndex()
self._createProvidedMimeIndex()
self._cursor().execute("ANALYZE")
def _createMirrorlinksIndex(self):
if self.indexing:
+3
View File
@@ -625,6 +625,9 @@ class EntropyRepositoryTest(unittest.TestCase):
out = self.test_db.searchName(_misc.get_test_package_name())
self.assertEqual(out, (('sys-libs/zlib-1.2.3-r1', 1),))
def test_db_indexes(self):
self.test_db.createAllIndexes()
def test_db_import_export(self):
test_pkg = _misc.get_test_package2()