-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 2.2
-
Component/s: Performance
-
None
-
Environment:EC2 / Ubuntu 10.04
1.6.3
2.2 Java Driver
Problem:
Get the following results
Case 1: db.slaveOk()
Queries : 120
Case 2: db.collection.addOption(Bytes.QUERYOPTION_SLAVEOK)
Queries : 412095
Workaround:
Don't use db.slaveOk()
Reproduce:
See attached SlaveTest.java
- compile with Java 2.2 Driver
- Case 1 : java -cp mongo-2.2.jar:. com.test.SlaveTest "10.202.215.63:27000,10.243.7.47
:27000" test blogs 1 3 - Case 2 : java -cp mongo-2.2.jar:. com.test.SlaveTest "10.202.215.63:27000,10.243.7.47
:27000" test blogs 2 3
Business Case:
- performance