mirror of
https://github.com/cassandra/home-information.git
synced 2026-05-24 08:19:00 -04:00
451 B
451 B
Database Conventions
Indexing Strategy
class Meta:
indexes = [
models.Index(fields=['integration_name', 'integration_id']),
models.Index(fields=['timestamp']),
models.Index(fields=['entity', '-timestamp']),
]
db_table = 'entity_sensor_response'
Related Documentation
- Backend guidelines: Backend Guidelines
- Django patterns: Django Patterns