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
Branches
Tags v0.0.2
No related merge requests found
...@@ -48,6 +48,7 @@ def pg_optimize(verbose=False): ...@@ -48,6 +48,7 @@ def pg_optimize(verbose=False):
if verbose: if verbose:
print('No PostgreSql connection backend detected...') print('No PostgreSql connection backend detected...')
else: else:
print('Start PostgreSql tables optimization...')
cursor = connection.cursor() cursor = connection.cursor()
cursor.execute('alter table opds_catalog_book SET ( fillfactor = 50)') cursor.execute('alter table opds_catalog_book SET ( fillfactor = 50)')
cursor.execute('VACUUM FULL opds_catalog_book') cursor.execute('VACUUM FULL opds_catalog_book')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment