Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Reducing DB interactions at mongoBackend] Fill ONCHANGE notifications information from thread memory instead of entityQuery() #881

Closed
fgalan opened this issue Apr 15, 2015 · 3 comments
Assignees
Labels
Milestone

Comments

@fgalan
Copy link
Member

fgalan commented Apr 15, 2015

As in version 0.20.0, the "filling" of ONCHANGE notification is done using entitiesQuery() operation, which involves a new query to DB (i.e. suboptimal, given that that information is already in the thread memory processing the updateContext).

This issue is about changing the way it works, so avoiiding the additional query to DB.

@fgalan fgalan added the backlog label Apr 15, 2015
@fgalan fgalan added this to the 0.22.0 milestone Apr 15, 2015
@fgalan
Copy link
Member Author

fgalan commented Apr 22, 2015

Not sure at the end if all information is already known, e.g. in the case of subscriptions with geo-location scopes associated. We need entitiesQuery() to solve that notifications.

@fgalan fgalan modified the milestone: 0.22.0 May 7, 2015
@fgalan fgalan added this to the 0.26.0 milestone Oct 29, 2015
@fgalan fgalan self-assigned this Nov 3, 2015
@fgalan fgalan changed the title Fill ONCHANGE notifications information from thread memory instead of entityQuery() [Reducing DB interactions at mongoBackend] Fill ONCHANGE notifications information from thread memory instead of entityQuery() Nov 5, 2015
@fgalan
Copy link
Member Author

fgalan commented Nov 5, 2015

After analyzing this a little bit, there is a couple of "spin off" issues also related with reducing the number of DB interactions in mongoBackend:

@fgalan
Copy link
Member Author

fgalan commented Nov 10, 2015

Implemented in PR #1483

@fgalan fgalan closed this as completed Nov 10, 2015
fisuda pushed a commit to fisuda/fiware-orion that referenced this issue Feb 15, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant