grahamcrowell / PortfolioBackTester

0 stars 0 forks source link

update stock price data asyncronously #2

Open grahamcrowell opened 7 years ago

grahamcrowell commented 7 years ago

Bulk update fact.stockohlc for all stocks in dim.stock

Instead of updating data for one stock at a time in a loop we want many updating at once

Need to learn Future and Promise in Scala concurrent package. Here's an overview

update task(symbol)

  1. download data
  2. insert into table

Logic should be:

  1. Query dim.stock
  2. Wait for query to return with list of symbols
  3. start updating tasks for many symbols at once
grahamcrowell commented 7 years ago

use akka http, actors, futures, and magic