You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Import the CSV into influxdb (example is using csv-to-influxdb): csv-to-influxdb -m bars -t Symbol -ts Date -tf 2006-01-02 -d eodbars WIKI_20160816.csv
Try some queries:
SELECT MAX(Open) AS Open, MAX(Close) AS Close, MAX(Volume) AS Volume, (MAX(Close) - MAX(Open)) / MAX(Open) * 100 AS PctChg INTO newBars FROM bars WHERE time < now() GROUP BY time(1d), Symbol
SELECT Close / Open INTO pctChg FROM bars
SELECT * FROM bars LIMIT 1
Expected behavior: The queries should work or tell me that I can't because it's too much.
Actual behavior: Out of Memory and influxdb restarts
The text was updated successfully, but these errors were encountered:
You likely need to alter your retention policy (before inserting) with a larger shard group duration. The sample data your showed is creating very sparse data and lots of shards. The 1.0 nightlies have some fixes that reduce memory in those cases, but increasing your shard group duration to 10y should help.
Bug report
System info: [0.13.0, Ubuntu 16.04, 32GB RAM]
Board conversation: https://groups.google.com/forum/#!topic/influxdb/fiQzEy1aWP8
Steps to reproduce:
echo '"Symbol","Date","Open","High","Low","Close","Volume","Ex-Dividend","Split Ratio","Adj. Open","Adj. High","Adj. Low","Adj. Close","Adj. Volume"' | cat - WIKI_20160816.csv | sponge WIKI_20160816.csv
CSV Data sample:
14288591
points in totalcsv-to-influxdb -m bars -t Symbol -ts Date -tf 2006-01-02 -d eodbars WIKI_20160816.csv
SELECT MAX(Open) AS Open, MAX(Close) AS Close, MAX(Volume) AS Volume, (MAX(Close) - MAX(Open)) / MAX(Open) * 100 AS PctChg INTO newBars FROM bars WHERE time < now() GROUP BY time(1d), Symbol
SELECT Close / Open INTO pctChg FROM bars
SELECT * FROM bars LIMIT 1
Expected behavior: The queries should work or tell me that I can't because it's too much.
Actual behavior: Out of Memory and influxdb restarts
The text was updated successfully, but these errors were encountered: