-
Notifications
You must be signed in to change notification settings - Fork 11
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
Improve engine #1
Comments
@cajoy You are absolutely right! To be honest, the current implementation is far from ideal, or at least what I want it to be. I was planning to resume working on this very very soon, and I will probably start with this suggestion of yours. Thank you! |
Sounds good for me. I can try to help if you don't mind.. |
Contributions are always welcome :) Just, if possible, keep me in the loop before preparing a pull request, so that we don't end up duplicating efforts. |
ok |
Happy new year!!! This commits introduces follow features: * `EnableAutoUpdate` and `DisableAutoUpdate` method to engine, with this methods the user can manager the engine auto update similars and suggestions status. * `Update` method to engine, now users can update the similars and suggestions to a user manually. * `Batch` method to rater, now users can rater things in batch, maybe this commit resolve part of the FurqanSoftware#1 In addition to the new API the batch operations is faster than normal operations, follow a Benchmark ``` bash $ go test -bench . PASS BenchmarkNoBatch 20 53301558 ns/op BenchmarkUsingBatch 10000 187824 ns/op ```
Happy new year!!! This commits introduces follow features: * `EnableAutoUpdate` and `DisableAutoUpdate` method to engine, with this methods the user can manager the engine auto update similars and suggestions status. * `Update` method to engine, now users can update the similars and suggestions to a user manually. * `Batch` method to rater, now users can rater things in batch, maybe this commit resolve part of the FurqanSoftware#1 In addition to the new API the batch operations is faster than normal operations, follow a Benchmark ``` bash $ go test -bench . PASS BenchmarkNoBatch 20 53301558 ns/op BenchmarkUsingBatch 10000 187824 ns/op ```
Happy new year!!! This commits introduces follow features: * `EnableAutoUpdate` and `DisableAutoUpdate` method to engine, with this methods the user can manager the engine auto update similars and suggestions status. * `Update` method to engine, now users can update the similars and suggestions to a user manually. * `Batch` method to rater, now users can rater things in batch, maybe this commit resolve part of the FurqanSoftware#1 In addition to the new API the batch operations is faster than normal operations, follow a Benchmark ``` bash $ go test -bench . PASS BenchmarkNoBatch 20 53301558 ns/op BenchmarkUsingBatch 10000 187824 ns/op ```
Let's say I want to add 50 likes in a sec.
Suggestions and Similarities are going to be updated 50 times during query.
Can I somehow manually run update after I added 50 likes.
Because current implementation is going to burn CPU
Thanks
The text was updated successfully, but these errors were encountered: