From 4eb8ec62146fb7f36ee284085d580aff9cb03cef Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Tue, 16 May 2023 20:42:45 +0300 Subject: modify alloaction size --- wqflask/scripts/textfiles_generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wqflask/scripts/textfiles_generator.py b/wqflask/scripts/textfiles_generator.py index aa8f1647..a9369a3b 100644 --- a/wqflask/scripts/textfiles_generator.py +++ b/wqflask/scripts/textfiles_generator.py @@ -154,7 +154,7 @@ def cache_trait_metadata(dataset_name, dataset_type, data): if not data: return try: - with lmdb.open(os.path.join(TMPDIR, f"metadata_{dataset_type}"), map_size=500971520) as env: + with lmdb.open(os.path.join(TMPDIR, f"metadata_{dataset_type}"), map_size=1048576000) as env: with env.begin(write=True) as txn: metadata = { "data": data, @@ -190,7 +190,7 @@ def write_strains_data(sql_uri, dataset_name: str, data, col_names): if data == {}: return try: - with lmdb.open(os.path.join(TMPDIR, "Probesets"), map_size=500971520) as env: + with lmdb.open(os.path.join(TMPDIR, "Probesets"), map_size=5242880000) as env: with env.begin(write=True) as txn: meta = { "strain_names": col_names, -- cgit v1.2.3