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

Buffer for updateContext "bulk" processing #1153

Open
fgalan opened this issue Aug 12, 2015 · 2 comments
Open

Buffer for updateContext "bulk" processing #1153

fgalan opened this issue Aug 12, 2015 · 2 comments
Labels
Milestone

Comments

@fgalan
Copy link
Member

fgalan commented Aug 12, 2015

Current Orion version (0.23.0) processes updateContext containing N elements in sequential mode, doing N query/insert operations, even when the N refer to the same entity/attributes. This is a suboptimal behaviour.

It would be better to keep a buffer while updateContext is being processed, doing the modifications (and any futher brokering logic, i.e. notification on changed values) in the buffer. The buffer will be consolidated in the DB once updateContext processing is finalized.

@fgalan fgalan added the backlog label Aug 12, 2015
@fgalan
Copy link
Member Author

fgalan commented Aug 12, 2015

In some sense, it is related with #881

@fgalan
Copy link
Member Author

fgalan commented Jun 11, 2024

This MongoDB operation could be used http://mongoc.org/libmongoc/current/mongoc_bulk_operation_update.html, accumulating all the documents to be updated.

This bulk could also include the update to upgrade fiware correlators in DB, as explained in #3893 (comment)

@fgalan fgalan added this to the 4.1.0 milestone Jun 11, 2024
@fgalan fgalan pinned this issue Jun 11, 2024
@fgalan fgalan modified the milestones: 4.1.0, 4.2.0 Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant