Skip to main content

Community

New Connector: Mongodb Read preference

Please sign in to leave a comment.

Comments

1 comment

  • Official comment

    Hi Praneeth,

    Thanks for your question here! For MongoDB, we do use the secondaryPreferred read preference, per MongoDB docs: https://www.mongodb.com/docs/manual/core/read-preference/

    I wonder since this is secondaryPreferred and not secondary, did our connector try to sync when no secondary nodes were available?

    For your use case, is secondaryPreferred not acceptable and we must always read from secondary? If no nodes are available and we don't have secondaryPreferred, your syncs may fail. Please share more information on what you are hoping to accomplish in this use case!