Commit a21bc252 authored by Dmitry Shelepnev's avatar Dmitry Shelepnev
Browse files

Add text message for Postgre Optimization

parent 6939767a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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')