Home Information - Your home, your data, organized.
Python
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
- Coding patterns: Django Patterns