-
Notifications
You must be signed in to change notification settings - Fork 49
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
Using old indicator events #286
Comments
this only affects the ordering of events returned from the MongoDB query, which should get the newest events. However this might cause some of the newest of those events to be dropped. BTW I think the fix is |
Well, actually events are retrieved in the correct order from mongo, but the limit of those events is set by this value:
maxQueryEvents will be almost always much higher than maxIndicatorsPerQuery value, so, as we sort again in this part of the code:
we end up losing recent events in cases were users has more history than the number defined by maxIndicatorsPerQuery. For us, this is the normal scenario, and we don't like the idea of having maxIndicatorsPerQuery increased to compensate for that, because we would lose reactivity. Thanks again for reading!! |
A PR has been created for this. #287 Thanks @AgusPietra for finding this! Let us know if you have a chance to try this. |
It was nothing, thanks to you! I'll try it tomorrow |
Description
Recommendations for user are based only on the oldest maxIndicatorsPerQuery events of an indicator, not the newest.
Details:
This is the specific part of the code that I think has the problem:
I propose to change it to:
The sort by is ordering in ascending order, I'm actually debugging the code and watching this behavior.
Sorry to open another issue with this, I think the oter issue I opened wasn't clear enough, so you misunderstand me.
Thanks for reading
The text was updated successfully, but these errors were encountered: