Performance: Datenbank-Indexes für Ticket-Tabelle anlegen #75
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Beschreibung
Die Ticket-Tabelle hat keine Indexes auf häufig abgefragten Spalten (
status,classification,created_at,odoo_id). Bei wachsender Ticketanzahl (>1000) werden Dashboard-Queries und Pipeline-Lookups langsam.Hintergrund
Jede Dashboard-Ladung führt mehrere Filter-Queries aus (nach Status, Classification, Datum). Ohne Indexes wird ein Full Table Scan durchgeführt.
Akzeptanzkriterien
tickets.statustickets.classificationtickets.created_attickets.odoo_id(status, classification)für Dashboard-FilterTechnische Hinweise
backend/models/ticket.py, neue Alembic-MigrationIndex('ix_ticket_status', 'status')im Model oder via MigrationAufwand: S