Skip to content
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

ContextAttribute values from mongoBackend #882

Open
kzangeli opened this issue Apr 15, 2015 · 1 comment
Open

ContextAttribute values from mongoBackend #882

kzangeli opened this issue Apr 15, 2015 · 1 comment

Comments

@kzangeli
Copy link
Member

When just updating local information we don't need the value of a context attribute.
mongoUpdateContext doesn't return the value of the attributes from the incoming request, and that is OK.
However, when a forward of the Update is to be done, the value of the attribute is necessary.
Right now, the service routine (postUpdateContext) adds the attribute values from the request to the response from mongoUpdateContext, so everything works, however it is slower. mongoBackend throws away information that we later have to lookup ...

The 'fix' would be to make mongoUpdateContext return the value (and type) of all attributes that are to be forwarded.

Effort: 2 man day

@fgalan
Copy link
Member

fgalan commented Apr 15, 2015

To have all the information in the same place, just another opinion/thought (mine :) in this comment.

I agree in that it is more efficient that way (you save the lookup step in serviceRoutine) but worse from the point of view of software layers autonomy and separation of concerns.

fisuda pushed a commit to fisuda/fiware-orion that referenced this issue Feb 15, 2022
…us_hasField

Performance/superfluous has field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants