Skip to content
Snippets Groups Projects
Commit a21bc252 authored by Dmitry Shelepnev's avatar Dmitry Shelepnev
Browse files

Add text message for Postgre Optimization

parent 6939767a
No related branches found
No related tags found
Loading
......@@ -48,6 +48,7 @@ def pg_optimize(verbose=False):
if verbose:
print('No PostgreSql connection backend detected...')
else:
print('Start PostgreSql tables optimization...')
cursor = connection.cursor()
cursor.execute('alter table opds_catalog_book SET ( fillfactor = 50)')
cursor.execute('VACUUM FULL opds_catalog_book')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment