some micro optimizations for sqlite3 enabled

This commit is contained in:
Your Name 2024-12-18 04:01:50 +03:00
parent 3fc2a6e03d
commit 599fc57dd8

View file

@ -192,6 +192,12 @@ async def main():
)''')
conn.commit()
logger.debug('sqlite3 database initialized')
logger.debug('optimizing database...')
c.execute('PRAGMA optimize')
c.execute('PRAGMA journal_mode = WAL')
c.execute('PRAGMA synchronous = normal')
c.execute('VACUUM')
logger.debug('optimized')
####################################################################