ddsnowboard / FantasyStocks

A website where you play a game of fantasy stocks.
http://fantasystocks.herokuapp.com
Apache License 2.0
0 stars 1 forks source link

Caching for StockWidget #4

Closed ddsnowboard closed 8 years ago

ddsnowboard commented 8 years ago

Using StockWidget is painfully slow, so what I plan to do is tell the Bloodhound to prefetch the same URL as the remote but without the query at the end (I'll have to set this up) and the server will return the json of all the stocks in the database up to that point. I'll set the minimum to a huge number so that it will always search the remote too, so the preloaded ones will come up instantly and the other ones will come up later. I think it'll be good. Maybe.

ddsnowboard commented 8 years ago

Done. Not that hard.