perf/portfolio-enricher-optimization #9

Merged
ksv741 merged 2 commits from perf/portfolio-enricher-optimization into main 2026-06-14 13:43:06 +03:00
Owner
No description provided.
ksv741 added 2 commits 2026-06-14 13:42:58 +03:00
Three optimizations:
1. Merge getBondData + getBondMarketData into single batch call
   (same endpoint, parse both tables)
2. Remove redundant getSecurityDescription for shortName
   (shortName already in market data responses)
3. Batch by market: 1 call for all shares, 1 call for all bonds
   (instead of N individual calls)

Before: 298 API calls for 104 positions -> ~29.8s
After:  2 API calls for 104 positions -> ~0.3s
fix: exclude test files from frontend tsc build
All checks were successful
CI / lint (pull_request) Successful in 1m46s
CI / test (pull_request) Successful in 1m48s
CI / build (pull_request) Successful in 1m56s
CI / lint (push) Successful in 1m51s
CI / test (push) Successful in 1m51s
CI / build (push) Successful in 1m46s
38729249f3
Test files use vitest globals (vi, describe, afterEach) not available
to tsc. Exclude them from build type-check via tsconfig exclude block.
ksv741 merged commit 38729249f3 into main 2026-06-14 13:43:06 +03:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: moex/moex-vibe#9
No description provided.