MongoDB Connector - Performance Impact - Slow $cmd Queries #42393
Unanswered
kevcodez
asked this question in
Connector Questions
Replies: 1 comment
-
We can definitely see the same behavior which has a negative effect on our DB |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
since setting up the MongoDB Connector with CDC, we're seeing a lot of very slow queries on the op-log and wondering if there's anything we can do to reduce the times. We fear that this has a negative effect on cluster performance given the extremely slow queries.
Within just 24 hours, we're seeing the connector queries take 2h40 minutes in total.
Looking into some specific queries, they are taking up to two minutes.
Our database is about 65GB with collections ranging from 200k to 35mil entries. We set up multiple Connections in Airbyte to sync a few tables. The query times issued by the sync range from <100ms to >2 minutes per query.
Any tips on how to reduce the impact of the CDC sync? We used to have an incremental sync on an
updatedAt
field in our collections, which is no longer available in recent versions of the MongoDB connector and I can only do a full-sync or CDC-sync, but no an incremental sync with a custom field.Replication oplog window is ~1 day. The CDC syncs in Airbyte run every 15-30 minutes.
Sample parsed log document for one of the slow queries (1m44s)
Beta Was this translation helpful? Give feedback.
All reactions