diff options
author | Arthur Centeno | 2021-11-18 17:57:02 +0000 |
---|---|---|
committer | Arthur Centeno | 2021-11-18 17:57:02 +0000 |
commit | 518fb7c62abdd4ec7a48f5b93697644e04caa588 (patch) | |
tree | edfe7a35dc2791a884ee31d4f6bd5ab95e4aa621 /wqflask/base/data_set.py | |
parent | 42eee3a5f5d4055210e971db02e94e33b66d0b71 (diff) | |
parent | dea1afa01025026a0754de60615b974a5cb3fd24 (diff) | |
download | genenetwork2-518fb7c62abdd4ec7a48f5b93697644e04caa588.tar.gz |
Merge github.com:genenetwork/genenetwork2 into current_production
Diffstat (limited to 'wqflask/base/data_set.py')
-rw-r--r-- | wqflask/base/data_set.py | 6 |
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 |