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

If store(fs.writeSync) frequently, IO tall use, maybe need throttle? #20

Open
dengyaolong opened this issue Jul 26, 2017 · 3 comments
Open

Comments

@dengyaolong
Copy link

I use conf to save some stat KPI(a lot of count and timing), combo and send it to my stat server. However, user maybe manipulate frequently, and conf will writeFileSync frequently too, Its there any solution, may be throttle?

@SamVerschueren
Copy link
Contributor

SamVerschueren commented Jul 26, 2017

I don't think conf is a good fit for that use case to be honest. Like the name implies, and the description of the package states

Simple config handling for your app or module

It's for config handling, not for writing bulks of data to disk because from what you say, it looks like you should use streams for that.

@sindresorhus
Copy link
Owner

How frequent and how much data?

@dengyaolong
Copy link
Author

as most 100 times / sec. I agree with @SamVerschueren , now I am trying write a new “electron-store“, add to memory, and save after combo.

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

3 participants