ONSdigital / dp-find-insights-poc-api

Find Insights Proof of Concept
MIT License
1 stars 0 forks source link

limit number of metrics processed per query #60

Closed wavemechanics closed 2 years ago

wavemechanics commented 2 years ago

What

Put a limit on the number of metrics a skinny query can return, just to prevent memory overruns now that rows and cols can be open ended. This is done with a new MAX_METRICS environment variable used by the API and the lambda. Default is 200000. The cli has --maxmetrics, and the default is 0, no limit.

Also make the API http write timeout configurable with the WRITE_TIMEOUT environment variable. Default is 30s.