vegaprotocol / data-node

A rich API server for Vega Protocol
https://vega.xyz
Other
3 stars 1 forks source link

Current market data query should be cached #666

Closed pscott31 closed 2 years ago

pscott31 commented 2 years ago

There are currently a lot of calls to the market data store to get the current market data snapshot for a given market and all markets. To prevent hammering postgres and incurring latency each time, cache the latest market data structs for each market.