1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-03-20 06:50:23 +03:00

added temporary storage in memory for stlite

This commit is contained in:
Adolfo Gómez García 2017-01-30 10:57:35 +01:00
parent 11100e3fda
commit e22f489038

View File

@ -90,6 +90,7 @@ def extend_sqlite(connection=None, **kwargs):
cursor = connection.cursor()
cursor.execute('PRAGMA synchronous=OFF')
cursor.execute('PRAGMA cache_size=8000')
cursor.execute('PRAGMA temp_store=MEMORY')
connection.connection.create_function("MIN", 2, min)
connection.connection.create_function("MAX", 2, max)
connection.connection.create_function("CEIL", 1, math.ceil)