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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
7 additions and
0 deletions
-
CHANGELOG.md
-
prisma/migrations/20240323080559_added_index_for_data_source_symbol_to_market_data/migration.sql
-
prisma/schema.prisma
|
|
@ -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` |
|
|
|
|
|
@ -0,0 +1,2 @@ |
|
|
|
-- CreateIndex |
|
|
|
CREATE INDEX "MarketData_dataSource_symbol_idx" ON "MarketData"("dataSource", "symbol"); |
|
|
@ -97,6 +97,7 @@ model MarketData { |
|
|
|
|
|
|
|
@@unique([dataSource, date, symbol]) |
|
|
|
@@index([dataSource]) |
|
|
|
@@index([dataSource, symbol]) |
|
|
|
@@index([date]) |
|
|
|
@@index([marketPrice]) |
|
|
|
@@index([state]) |
|
|
|