Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opitimalization: tables relationship (join) #334

Merged
merged 12 commits into from
Jul 31, 2024

Conversation

Progress1
Copy link
Collaborator

This commit add some speed up with modifying "lazy" parameter in db.relationship. Mostly is added JOIN type. This reduce a quantity of database requests from framework resulting more user gui fluently work and reducing waiting times on some actions.

  • added lazy="joined" and lazy="selectin" (Attribute, AttributeEnum, NewsItem, NewsItemData, AttributeGroupItem, ReportItemAttribute, User)
  • replaced some manual code filtration with JOIN relationship
  • speed up attributes creation on report (when adding new)
  • .gitgnore: add .editorconfig file

@Progress1 Progress1 merged commit 81805d8 into SK-CERT:main Jul 31, 2024
3 checks passed
Progress1 pushed a commit to Progress1/Taranis-NG that referenced this pull request Aug 13, 2024
…y change: Opitimalization: tables relationship (join) SK-CERT#334
Progress1 added a commit that referenced this pull request Aug 13, 2024
* Fix sorting report atrributes to respect user order.  This is caused by change: Opitimalization: tables relationship (join) #334

* remove unnecessary import

---------

Co-authored-by: Jan Polonsky <[email protected]>
@Progress1 Progress1 deleted the piku_join branch August 13, 2024 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant