Skip to content

Commit

Permalink
perf(api): improved loading of modules (#30)
Browse files Browse the repository at this point in the history
* Merged feat/package-module-alembic

commit 70b0139
Author: Maxime Vergez <maxime_vergez@natural-solutions.eu>
Date:   Tue Dec 6 15:22:56 2022 +0100

    style: apply black

commit 2badedf
Author: Maxime Vergez <maxime_vergez@natural-solutions.eu>
Date:   Tue Dec 6 15:11:41 2022 +0100

    chore(db): removed unused import

commit 57d9b52
Author: Maxime Vergez <maxime_vergez@natural-solutions.eu>
Date:   Tue Dec 6 14:47:48 2022 +0100

    feat(db): improved & finished downgrade func

commit 211780f
Author: Maxime Vergez <maxime_vergez@natural-solutions.eu>
Date:   Tue Dec 6 09:32:12 2022 +0100

    feat(db): wip: add upgrade and began downgrade

    Downgrade migration need a little bit more work due to the use of
    sql alchemy and not plain text sql

commit 0b5a3b8
Author: Maxime Vergez <maxime_vergez@natural-solutions.eu>
Date:   Mon Dec 5 11:40:32 2022 +0100

    feat: packaged module

* perf(api): improved loading of modules

When there are loads of datasets, the relationship takes a lot of
time to load, and is useless for the route that uses it.

* fix: due to wrong rebase

Fix: newline on data_utils.py
Fix: relationships are not joined anymore since there is no need of
them
Chore: update comment
  • Loading branch information
mvergez authored and amandine-sahl committed Jul 29, 2024
1 parent 29dbf91 commit bf4e2a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/gn_module_monitoring/modules/repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
get_modules
"""

from sqlalchemy.orm import Load
from sqlalchemy.orm.exc import MultipleResultsFound, NoResultFound

from geonature.utils.env import DB
Expand Down

0 comments on commit bf4e2a4

Please sign in to comment.