算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
django-index-design【设计与创意】Design safe Django and PostgreSQL indexes from measured query plans, including B-tree, composite, covering, partial, expression, GIN/JSONB, BRIN, and concurrent migration patterns. Use when a Django query plan suggests missing or mismatched indexes, a production table needs an index without write downtime, or existing indexes need review.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill to add or change indexes only after profiling shows a specific query can benefit. Indexes speed selected reads and constraints, but they add write cost, migration risk, and maintenance overhead.
Start from a query plan.
Choose the index shape.
ORDER BY for LIMIT queries when possible.Express the index in Django models or migrations.
Meta.indexes for normal model-owned indexes.AddIndexConcurrently and RemoveIndexConcurrently for live PostgreSQL tables.Validate on production-like data.
QuerySet.explain() or EXPLAIN ANALYZE.See index-patterns.md for index examples and migration templates.
atomic = False.Finish with before/after plan evidence, the exact migration operation, and the operational risk assessment for locks, writes, and rollback.