Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Query time issue with "Tag" implementation

オープン
#352 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@zakriya057 がすでに取り組んでいます。

2024年12月2日 から。

評価

この issue はまだ評価されていません。

説明

enhancement feature proposal medium priority

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:

  1. Huge Query overhead
  2. Somehow, if a new Shift has a Tag that 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ClockGU/clock-backend のほかの issue

ClockGU/clock-backend の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。