diff options
author | Frederick Muriuki Muriithi | 2022-05-16 12:19:26 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-05-16 12:19:26 +0300 |
commit | 6824c09bd7fd29af451a94e4a8c2fcda25282960 (patch) | |
tree | 0d31ec36c0bbb94ac1be80e95cfc0a399efec384 /issues/improve-menu-generation-and-move-it-to-gn3.gmi | |
parent | e2dc25663035715d1088f6cc16a62a9f02fe9512 (diff) | |
download | gn-gemtext-6824c09bd7fd29af451a94e4a8c2fcda25282960.tar.gz |
New issue: Menu generation improvements
Diffstat (limited to 'issues/improve-menu-generation-and-move-it-to-gn3.gmi')
-rw-r--r-- | issues/improve-menu-generation-and-move-it-to-gn3.gmi | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/issues/improve-menu-generation-and-move-it-to-gn3.gmi b/issues/improve-menu-generation-and-move-it-to-gn3.gmi new file mode 100644 index 0000000..b621cbe --- /dev/null +++ b/issues/improve-menu-generation-and-move-it-to-gn3.gmi @@ -0,0 +1,25 @@ +# Improve Menu Generation and Move it to GN3 + +## Tags + +* assigned: fredm +* type: bug +* priority: medium +* status: pending +* keywords: menu generation, GN2, GN3 + +## Description + +The +=> https://github.com/genenetwork/genenetwork2/blob/testing/wqflask/wqflask/api/gen_menu.py#L6-L17 gen_dropdown_json +function calls functions that make queries to the database within loops. + +This ruins the performance of the system significantly. + +The queries should be reworked, and the code should be moved to GN3 since it does database access. + +### TODOs + +* [ ] Rework the queries: don't run queries inside loops +* [ ] Move the code to GN3 +* [ ] Provide results of function at an endpoint in GN3 |