Improve search quality, ORM efficiency, and filter consistency
This commit is contained in:
@ -0,0 +1,41 @@
|
||||
# Generated by Django 5.2.12 on 2026-03-10 17:05
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("stats", "0001_initial"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddIndex(
|
||||
model_name="playerseasonstats",
|
||||
index=models.Index(fields=["steals"], name="stats_playe_steals_59b0f3_idx"),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name="playerseasonstats",
|
||||
index=models.Index(fields=["blocks"], name="stats_playe_blocks_b2d4de_idx"),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name="playerseasonstats",
|
||||
index=models.Index(fields=["turnovers"], name="stats_playe_turnove_aa4e87_idx"),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name="playerseasonstats",
|
||||
index=models.Index(fields=["fg_pct"], name="stats_playe_fg_pct_bf2ff1_idx"),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name="playerseasonstats",
|
||||
index=models.Index(fields=["three_pct"], name="stats_playe_three_p_c67201_idx"),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name="playerseasonstats",
|
||||
index=models.Index(fields=["ft_pct"], name="stats_playe_ft_pct_da7421_idx"),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name="playerseasonstats",
|
||||
index=models.Index(fields=["player_efficiency_rating"], name="stats_playe_player__641815_idx"),
|
||||
),
|
||||
]
|
||||
@ -63,8 +63,15 @@ class PlayerSeasonStats(models.Model):
|
||||
models.Index(fields=["points"]),
|
||||
models.Index(fields=["rebounds"]),
|
||||
models.Index(fields=["assists"]),
|
||||
models.Index(fields=["steals"]),
|
||||
models.Index(fields=["blocks"]),
|
||||
models.Index(fields=["turnovers"]),
|
||||
models.Index(fields=["fg_pct"]),
|
||||
models.Index(fields=["three_pct"]),
|
||||
models.Index(fields=["ft_pct"]),
|
||||
models.Index(fields=["usage_rate"]),
|
||||
models.Index(fields=["true_shooting_pct"]),
|
||||
models.Index(fields=["player_efficiency_rating"]),
|
||||
]
|
||||
|
||||
def __str__(self) -> str:
|
||||
|
||||
Reference in New Issue
Block a user