Created
September 24, 2015 13:00
-
-
Save peterzawistowicz/10b33207a995b89fff29 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# REPLICA SET (discovers other nodes) | |
my $client = MongoDB->connect( | |
"mongodb://h1.example.com/?replicaSet=myset" | |
); | |
# DIRECT CONNECTION | |
my $direct = MongoDB->connect( | |
"mongodb://h1.example.com/" | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment