Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long write times and write hangs with xts and influx_write() #45

Open
ckatsulis opened this issue Apr 20, 2018 · 2 comments
Open

Long write times and write hangs with xts and influx_write() #45

ckatsulis opened this issue Apr 20, 2018 · 2 comments

Comments

@ckatsulis
Copy link

Just looked at a quick profile of influx_write.
Seems that there are extremely long operations associated with purrr::map again. That was the culprit last time I had suggested replacing that logic with something quicker.

Don't know if you have time to delve in. In general for xts object with 4 cols and ~1MM rows, it is either hanging or not completing. The problem goes away when I push smaller portions to influx_write() so I imagine it is something to do with the map function, memory allocation, etc.

image

@dleutnant
Copy link
Owner

dleutnant commented Apr 21, 2018

Thanks, I'll take a look.
Did you try to optimize (i.e. increase) the max_points parameter? It might significantly result in much faster writes ...(dependend on connection and hardware of the InfluxDB instance)

@ckatsulis
Copy link
Author

ckatsulis commented Apr 21, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants