Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion What is the preferred method for setting readPreference using perl mongo driver
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Roman Alexis Anastasini  
View profile  
 More options Oct 5 2012, 3:51 pm
From: Roman Alexis Anastasini <roman.anastas...@gmail.com>
Date: Sat, 6 Oct 2012 03:50:51 +0800
Local: Fri, Oct 5 2012 3:50 pm
Subject: Re: [mongodb-user] What is the preferred method for setting readPreference using perl mongo driver

Hi Taylor,

Have a look here:
http://docs.mongodb.org/manual/applications/replication/#replica-set-...
Especially the v2.2 stuff is an interesting read.

Second have a look here:
http://docs.mongodb.org/manual/reference/method/cursor.readPref/

Dunno the exact perl syntax here, but you should figure it out, as you have the cursor set up. :-)

Hope that helps.

Cheers,
Roman

Roman Alexis Anastasini
Senior Web Developer
CMUNE

On Oct 6, 2012, at 3:17 AM, Taylor Fort <taylor.f...@gmail.com> wrote:

> I have a script that's using perl to connect to a mongo cluster through mongos.  There is already the Cursor functionality in setting slaveOk, but I was wondering what people are doing to set the readPreference (for example setting it to 'nearest').  
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongodb-user@googlegroups.com
> To unsubscribe from this group, send email to
> mongodb-user+unsubscribe@googlegroups.com
> See also the IRC channel -- freenode.net#mongodb


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.