From: "Simon T." <simon.tou...@gmail.com>
Date: Thu, 29 Mar 2012 12:27:40 -0700 (PDT)
Local: Thurs, Mar 29 2012 3:27 pm
Subject: Re: [mongodb-user] Re: SlaveOk queries doesn't seems to go through mongoS
The problem is indeed persistent, I never could get the queries to be The scripts are very simple: it is just looping queries. Here is two JAVA: } DBCollection coll = db.getCollection("players"); for(int i=0;i<10000;i++) { DBObject player = coll.findOne(new BasicDBObject("s_nintendoID", Integer.toString(i))); System.out.println("index: " + i + " players: " + player); } String message = String.format("Initialization Error: Host %1$s does not } catch (UnknownHostException ex) { exists. Message: %2$s", "osmngs01", ex.getMessage()); System.out.println(message); } catch (MongoException ex) { String message = String.format("Initialization Error: Cannot connect to host %1$s:%2$s. Message: %3$s", "osmngs01", 27017, ex.getMessage()); System.out.println(message); } AND C#: string connectionString = "mongodb://XXXXX:YYYYY@osmngs01/?slaveOk=true"; BsonDocument bsonPlayer = documents.FindOne(query); } catch (Exception exc) { System.Diagnostics.Debug.WriteLine(exc.Message); } Simon } 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.
| ||||||||||||||