[entropy.db] EntropyRepository.createAllIndexes: call "ANALYZE" stmt after indexes creation
This commit is contained in:
@@ -4801,6 +4801,7 @@ class EntropyRepository(EntropyRepositoryBase):
|
||||
self._createProvidedLibsIndex()
|
||||
self._createDesktopMimeIndex()
|
||||
self._createProvidedMimeIndex()
|
||||
self._cursor().execute("ANALYZE")
|
||||
|
||||
def _createMirrorlinksIndex(self):
|
||||
if self.indexing:
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user