From 34b59743140fcc20dc98c728471f80e20f13b6c3 Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Fri, 19 Jul 2024 15:14:20 -0500 Subject: [PATCH] Reduce database resources --- singlestoredb/tests/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/singlestoredb/tests/utils.py b/singlestoredb/tests/utils.py index 17b95c514..c85091461 100644 --- a/singlestoredb/tests/utils.py +++ b/singlestoredb/tests/utils.py @@ -73,6 +73,10 @@ def load_sql(sql_file: str) -> str: with open(sql_file, 'r') as infile: with s2.connect(**args) as conn: with conn.cursor() as cur: + cur.execute('SET GLOBAL default_partitions_per_leaf=2') + cur.execute('SET GLOBAL log_file_size_partitions=1048576') + cur.execute('SET GLOBAL log_file_size_ref_dbs=1048576') + if not dbname: dbname = 'TEST_{}'.format(uuid.uuid4()).replace('-', '_') cur.execute(f'CREATE DATABASE {dbname};')