Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Feature/add index for data source symbol to market data table (#3179)
Thomas Kaula70f45cbf3a7
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 321edaf54b..98835da835 100644--- a/CHANGELOG.md+++ b/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`diff --git a/prisma/migrations/20240323080559_added_index_for_data_source_symbol_to_market_data/migration.sql b/prisma/migrations/20240323080559_added_index_for_data_source_symbol_to_market_data/migration.sqlnew file mode 100644index 0000000000..477922d935--- /dev/null+++ b/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");diff --git a/prisma/schema.prisma b/prisma/schema.prismaindex df0f15e9e3..0b40109e89 100644--- a/prisma/schema.prisma+++ b/prisma/schema.prisma@@ -97,6 +97,7 @@ model MarketData {@@unique([dataSource, date, symbol])@@index([dataSource])+ @@index([dataSource, symbol])@@index([date])@@index([marketPrice])@@index([state])