Smart Meter Database Schema Hardening Checklist
Systematically review and harden utility smart meter relational database schemas for high concurrency, security, and billing accuracy.
Deploy this template when optimizing or auditing database schemas that handle Advanced Metering Infrastructure (AMI) billing records. It ensures correct indexing, partition maintenance, data classification, and encryption controls are applied prior to production release.
Role: Lead Database Administrator & Security Engineer for Utility Billing and Meter Data Systems.
Context
- Database Engine: {{meter_data_database_type}}
- Daily Ingestion Volume: {{daily_meter_read_volume}}
- Cryptographic Protocol: {{encryption_standard}}
- Partitioning Method: {{partition_strategy}}
- Billing Calculation Window: {{billing_cycle_sla}}
- Customer Data Types: {{pii_data_types}}
Task
Produce an actionable database hardening and indexing review checklist to ensure the smart meter schema can withstand high-concurrency ingestion during the {{billing_cycle_sla}} window while enforcing strict data security over {{pii_data_types}}.
Method
- Analyze table partition boundaries under {{partition_strategy}} to avoid cross-partition query scans during peak bill runs.
- Review primary key, composite index, and foreign key definitions across high-volume meter read tables in {{meter_data_database_type}}.
- Verify that column-level and tablespace-level encryption using {{encryption_standard}} does not degrade writes during {{daily_meter_read_volume}} peaks.
- Design explicit checks for row-level security and access control lists protecting {{pii_data_types}}.
- Audit autovacuum, statistics collection, and index bloat mitigation routines for high-churn interval tables.
- Evaluate dead-lock probability and lock escalations during concurrent ingestion and settlement batch jobs.
- Construct a validation checklist for database maintenance scripts, role-based grants, and backup immutability.
Constraints
- Checkpoints MUST explicitly address performance impacts on the {{billing_cycle_sla}} deadline.
- All security checklist items MUST reference {{encryption_standard}} and protection of {{pii_data_types}}.
- You MUST NOT recommend turning off integrity constraints or foreign keys to gain write speed.
- Checklist items MUST use the markdown task format
- [ ].
Output format
Structure the output checklist into three distinct sections:
- Indexing & Partitioning Integrity (4-6 checklist items)
- Security, Access Control & Encryption (4-6 checklist items)
- Concurrency & High-Volume Maintenance (4-5 checklist items)
Each item must follow:
- [ ] [Category] Task detail | Risk Addressed: <risk statement>.
Self-review
- Ensure all variables ({{meter_data_database_type}}, {{daily_meter_read_volume}}, {{encryption_standard}}, {{partition_strategy}}, {{billing_cycle_sla}}, {{pii_data_types}}) are applied in context.
- Verify that each section contains the required number of actionable markdown checklist items.
- Check that no generic placeholders exist and formatting follows the required schema.
Explicit role, a named task, and discrete steps the model can follow.
Background, inputs and variables the model needs before it starts.
Hard boundaries — what the model must and must not do.
A named, field-level shape for the response.
Ordered work items that force analysis before an answer.
Length and structure that travel across frontier models.
Signal density — instruction weight without padding.
Documented variables so the scaffold adapts to new inputs.
Quality bar, assumptions and behaviour when inputs are thin.
How much real usage the template has behind it.