Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 474 Bytes

File metadata and controls

9 lines (7 loc) · 474 Bytes

TODO: Add Indexes for Historical Data Query Performance

Plan

  • Analyze schema.prisma and query patterns in history.ts / intelligenceService.ts
  • Edit prisma/schema.prisma: Add @@index([updatedAt]) to PriceHistory model
  • Edit prisma/schema.prisma: Add @@index([symbol]) to Currency model
  • Run Prisma generate and db push to apply indexes (Node/npm not available in current terminal; user must run locally)
  • Verify changes and test endpoints