10000 High memory usage when using streams + changefeeds · Issue #357 · neumino/rethinkdbdash · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

High memory usage when using streams + changefeeds #357

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

Open
marshall007 opened this issue Sep 15, 2017 · 1 comment
Open

High memory usage when using streams + changefeeds #357

marshall007 opened this issue Sep 15, 2017 · 1 comment

Comments

@marshall007
Copy link
Contributor

We have a CLI task for keeping a redis cache populated from RethinkDB. It has a --watch argument which, when true, appends .changes({ includeInitial: true })('new_val') to each query used to rebuild the cache.

The code and queries being executed are otherwise identical, but running with --watch results in ~3x the memory consumption.

./bin/cache          130MB
./bin/cache --watch  330MB

I think this may be related to #263... perhaps the fix mentioned there (c323d49) was not ported over to the stream handling code?

@neumino
Copy link
Owner
neumino commented Oct 30, 2017

Do you have a script where this happen? Does cache just has a single query with changes({ includeInitial: true })?

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
0