-
Notifications
You must be signed in to change notification settings - Fork 13
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
questions #2
Comments
Hi @guypaskar
Please, let me know if these aswers are ok for you. Thanks! |
@PaquitoSoft , Thank you for the quick answer.
|
Hi @guypaskar
Thanks. |
Is there any LRU mechanism to prevent from the memory to be very high? Is it possible to do multi insert or multi delete? That would be very helpful! |
Hi @guypaskar Currently, as there is no memory limits, there's no eviction policy implemented. In the other hand, adding multi insert/delete should be much easier to implement. Thanks. |
Thanks @PaquitoSoft It seems like after a while reads/writes to memored gets really slow. at some points the callback returns after 40 seconds. (to save an sql query results of ~ 9000 rows) Also , it seems like the memory is really increasing as if there is a memory leak. I save the file like this: Any ideas on why these 2 issues are happening? Guy |
Hi @guypaskar Regarding the first issue, I didn't tested this module with lots of keys and maybe some checks are not well optimized when working on a large dataset. The second one may be caused by the new keys rate. I mean, if you insert new keys faster than they get removed (ttl), the memory will increase. As soon as I have time to work on this project again, I will definitely try to find solutions to the problems you pointed out. |
Hi @guypaskar, I've just published a new version (v1.1.0) with support for multi-insert/read/remove operations. I'll create a separate issue for the cache size limit requirement. I leave this issue open because I need to take a look about what you say of memored being slow in some situations. Cheers. |
Hi, @PaquitoSoft Can I use your module on some clusters? (shared memory on some machines) I want to have common memored. |
Hi @nicola-spb, I'm not sure if I get your question, but I think the answer is no. If your trying to share the same memory among different applications running in cluster mode, that's not possible with this module. Cheers. |
@guypaskar, regarding the memory leak issue, are you setting up memored to run the cache cleanup? https://github.com/PaquitoSoft/memored#invalidation-management If you do not specify the interval for the cache cleanup, cache entries will not be deleted unless you try to read them and they are expired. |
Hi, Thanks. |
Hi @crostagnol Yes, if the main process fails then all the data is lost. Regards. |
@guypaskar, I commited a new file (/demo/test-load.js) with an example of an intensive use of this module. You can play with that file configuring the constants at the top of it. It would be great if you could set up a repo with an example of your read delays so I can verify your scenario. Thanks. |
How do I propagate value changes (example onChange) across interested workers? Can you give some hints please. |
Hello @inpras If you mean being able to know when an specific cache vale has changed, that's something not supported in this library. I didn't see that feature in other caching libraries either. You can open another issue requesting that feature and I will look into it when I have some time available. Thanks. |
Hi , I liked this project a lot. couple of questions:
Thanks,
Guy
The text was updated successfully, but these errors were encountered: