mirror of
https://github.com/daniviga/django-ram.git
synced 2026-02-04 01:50:39 +01:00
Improve performance oprimizing queries (#56)
* Extend test coverage * Implement query optimization * More aggressing code reuse * Add more indexes and optimize usage * Fix tests * Further optimizations, improve counting to rely on backend DB * chore: add Makefile for frontend asset minification - Add comprehensive Makefile with targets for JS and CSS minification - Implements instructions from ram/portal/static/js/src/README.md - Provides targets: install, minify, minify-js, minify-css, clean, watch - Fix main.min.js to only include theme_selector.js and tabs_selector.js - Remove validators.js from minified output per README instructions * Add a Makefile to compile JS and CSS * docs: add blank line whitespace rule to AGENTS.md Specify that blank lines must not contain any whitespace (spaces or tabs) to maintain code cleanliness and PEP 8 compliance * Update for 0.20 release with optimizations * Improve Makefile
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
# Generated by Django 6.0.1 on 2026-01-18 13:42
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("consist", "0019_consistitem_load"),
|
||||
(
|
||||
"metadata",
|
||||
"0027_company_company_slug_idx_company_company_country_idx_and_more",
|
||||
),
|
||||
("roster", "0041_rollingclass_roster_rc_company_idx_and_more"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddIndex(
|
||||
model_name="consist",
|
||||
index=models.Index(fields=["published"], name="consist_published_idx"),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name="consist",
|
||||
index=models.Index(fields=["scale"], name="consist_scale_idx"),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name="consist",
|
||||
index=models.Index(fields=["company"], name="consist_company_idx"),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name="consist",
|
||||
index=models.Index(
|
||||
fields=["published", "scale"], name="consist_pub_scale_idx"
|
||||
),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name="consistitem",
|
||||
index=models.Index(fields=["load"], name="consist_item_load_idx"),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name="consistitem",
|
||||
index=models.Index(fields=["order"], name="consist_item_order_idx"),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name="consistitem",
|
||||
index=models.Index(
|
||||
fields=["consist", "load"], name="consist_item_con_load_idx"
|
||||
),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user