You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "thomas-gantenbein-tga (via GitHub)" <gi...@apache.org> on 2024/12/18 21:04:18 UTC

[PR] CAMEL-21559, mongodb: insertOne instead of replaceOne when saving without _id [camel]

thomas-gantenbein-tga opened a new pull request, #16604:
URL: https://github.com/apache/camel/pull/16604

   # Description
   
   The current implementation of the mongodb save operation forces mongodb to scan the whole collection when a document is saved without _id. This change makes an insert if no _id is given, instead of making an upsert with a filter condition that can never be satisfied. The behaviour for the save operation _with_ _id remains untouched.
   
   See also https://camel.zulipchat.com/#narrow/channel/257298-camel/topic/mongodb.20save.20operation.20performance


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-21559, mongodb: insertOne instead of replaceOne when saving without _id [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #16604:
URL: https://github.com/apache/camel/pull/16604#issuecomment-2552264931

   :star2: Thank you for your contribution to the Apache Camel project! :star2: 
   
   :robot: CI automation will test this PR automatically.
   
   :camel: Apache Camel Committers, please review the following items:
   
   * First-time contributors **require MANUAL approval** for the GitHub Actions to run
   
   * You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot.
   
   * You can label PRs using `build-all`, `build-dependents`, `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
   
   * Build and test logs are available in the Summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary. 
   
   * :warning: Be careful when sharing logs. Review their contents before sharing them publicly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-21559, mongodb: insertOne instead of replaceOne when saving without _id [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #16604:
URL: https://github.com/apache/camel/pull/16604


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org