aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kabui2021-11-17 01:19:00 +0300
committerAlexander Kabui2021-11-17 01:19:00 +0300
commitcddae6a6593a3f65cdb9565207a9a58c338e9024 (patch)
tree82f52be0c07f4fa7751c40c2df1adc45f3a10ced
parent92c992f6a311fa4d01e479de1bb8da38a3b798d2 (diff)
downloadgenenetwork2-cddae6a6593a3f65cdb9565207a9a58c338e9024.tar.gz
temp disable query caching
-rw-r--r--wqflask/base/data_set.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py
index 70c58136..768ad49b 100644
--- a/wqflask/base/data_set.py
+++ b/wqflask/base/data_set.py
@@ -754,8 +754,8 @@ class DataSet:
# Postgres doesn't have that limit, so we can get rid of this after we transition
chunk_size = 50
number_chunks = int(math.ceil(len(sample_ids) / chunk_size))
- cached_results = fetch_cached_results(self.name, self.type)
- # cached_results = None
+ # cached_results = fetch_cached_results(self.name, self.type)
+ cached_results = None
if cached_results is None:
trait_sample_data = []
for sample_ids_step in chunks.divide_into_chunks(sample_ids, number_chunks):
@@ -800,8 +800,6 @@ class DataSet:
results = g.db.execute(query).fetchall()
trait_sample_data.append([list(result) for result in results])
- cache_dataset_results(
- self.name, self.type, trait_sample_data)
else:
trait_sample_data = cached_results