Browse Source

Feature/add index for data source symbol to market data table (#3179)

* Add index

* Update changelog
pull/3180/head
Thomas Kaul 10 months ago
committed by GitHub
parent
commit
a70f45cbf3
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      CHANGELOG.md
  2. 2
      prisma/migrations/20240323080559_added_index_for_data_source_symbol_to_market_data/migration.sql
  3. 1
      prisma/schema.prisma

4
CHANGELOG.md

@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased
### Added
- Added an index for `dataSource` / `symbol` to the market data database table
### Changed
- Upgraded `angular` from version `17.1.3` to `17.2.4`

2
prisma/migrations/20240323080559_added_index_for_data_source_symbol_to_market_data/migration.sql

@ -0,0 +1,2 @@
-- CreateIndex
CREATE INDEX "MarketData_dataSource_symbol_idx" ON "MarketData"("dataSource", "symbol");

1
prisma/schema.prisma

@ -97,6 +97,7 @@ model MarketData {
@@unique([dataSource, date, symbol])
@@index([dataSource])
@@index([dataSource, symbol])
@@index([date])
@@index([marketPrice])
@@index([state])

Loading…
Cancel
Save