diff options
author | Frederick Muriuki Muriithi | 2022-10-20 07:00:20 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-10-20 07:04:49 +0300 |
commit | 9fc3158bffac84b465915fe1918e3aa34de27a2f (patch) | |
tree | 6f5b514832a5ee911e99f74e9c0158b0b7879124 | |
parent | 21f7f9650a33f81af3f149188f8ec15089694f6d (diff) | |
download | gn-gemtext-9fc3158bffac84b465915fe1918e3aa34de27a2f.tar.gz |
Issues (dataset_queried_twice): New issue
* issues/dataset_queried_twice.gmi: New issue
-rw-r--r-- | issues/dataset_queried_twice.gmi | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/issues/dataset_queried_twice.gmi b/issues/dataset_queried_twice.gmi new file mode 100644 index 0000000..aa726da --- /dev/null +++ b/issues/dataset_queried_twice.gmi @@ -0,0 +1,19 @@ +# Dataset Queried Twice + +## Tags + +* assigned: +* type: bug +* priority: medium +* keywords: performance enhancement, optimisation +* status: pending + +## Description + +In the function +=> https://github.com/genenetwork/genenetwork2/blob/6457f7e3516a04e238eeb061db358eea29cd2332/wqflask/base/trait.py#L21-L50 base.trait.create_trait +the dataset is queried twice: +* once in lines 30 to 33 +* once in the call to GeneralTrait (line 42) - lines 67 to 74 + +Maybe, pass the dataset created in lines 30 to 33 to GeneralTrait to avoid re-querying the data. |