Query time issue with "Tag" implementation
@zakriya057 がすでに取り組んでいます。
2024年12月2日 から。
評価
この issue はまだ評価されていません。
説明
Our current Implementation of tag's associated with a Shift is done via django-taggit here.
This implementation is somewhat lazy and causes a lot of overhead when querying all shifts
via the /shifts endpoint.
I have already created a branch in which django-silky is installed to profile the endpoints see the profiling branch.
Tags are a convenience feature for users to categorize Shift s and also sort them in a manner. Due to the nature
of how django-taggit implements Tags (ContentTypeRelations/Own db table) we are creating one query per shift object
as we are querying Shifts.
Main Issues:
- Huge Query overhead
- Somehow, if a new
Shifthas aTagthat is already existing, it is not reused but a new one is created (Not 100%, needs checking)
Goal:
Find a way to implement Tags in a way that the over head is reduced/eliminated. Possible changes in the Frontend are acceptable.
Check if Tags are reused.
If Tags are NOT reused, implement reusing them.
- 主要言語
- Python
- スター
- 0
- フォーク
- 4
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ClockGU/clock-backend のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
ClockGU/clock-backend#467 ·
-
feature proposal
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
ClockGU/clock-backend#451 · コメント 2 件 ·
-
:bug: Bug help wanted
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
ClockGU/clock-backend#435 ·
-
:bug: Bug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
ClockGU/clock-backend#433 · コメント 1 件 · リアクション 1 件 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
ClockGU/clock-backend#412 ·
ClockGU/clock-backend の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜2日 初心者へのやさしさ 70/100
-
FingerprintSplitter raises ZeroDivisionError when int(frac_train * len(dataset)) floors to zeroオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 7 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
lmstudio-ai/mlx-engine#376 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
pyiron/bagofholding#166 ·