-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Added support for running MongoDB queries on secondary in replicaset mode #1424
Conversation
…tabase (for example, secondaryPreferred - to try and read data from secondary before primary). - Removed old code that used MongoClientReplicaSet as it is now just a reference to MongoClient - Fixed a documentation type :-)
Why is this PR still open? Is there any other way to set the mongodb read preference in redash? |
Not sure why this hasn't been merged before. The main different is adding the "readPreference" flag so that by default, if there is a replicaSet configured you can tell it to prefer reading data from the replicaSets that are not the current master. I've merged some minor conflicts that were there since this is a super old PR. |
What about this pull request?Would be it solved? |
I've fixed the conflicts and I think it should be merged. |
@erans thanks for updating this PR. But it looks like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please review again and (hopefully merge). I think 3.5 years is long enough :-P
Congrats! That's my birthday gift for you 🎁 |
:-D Thanks!
…On Thu, Jan 23, 2020 at 11:15 AM Arik Fraimovich ***@***.***> wrote:
Congrats! That's my birthday gift for you 🎁
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1424?email_source=notifications&email_token=AAACUE44WR6QQK7O3KCAOL3Q7HUD3A5CNFSM4CXJMRIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJYQDKI#issuecomment-577831337>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAACUE4I2JCOY6JH5AVVDLDQ7HUD3ANCNFSM4CXJMRIA>
.
|
'replicaSetName': { | ||
'type': 'string', | ||
'title': 'Replica Set Name' | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arikfr I'm wondering why restyled didn't catch this change of style if black would have turned the single quotes into double quotes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤷 no idea.
No description provided.