Permalink
Browse files

bad function name

  • Loading branch information...
1 parent 1b66e5f commit 5903920468f58a097c874b17d4ec995ff301e75c @SergejJurecko committed Aug 18, 2010
Showing with 4 additions and 4 deletions.
  1. +3 −3 README.rdoc
  2. +1 −1 src/mongodb.erl
View
@@ -14,12 +14,12 @@ For instance:
% This will NOT work
Mong:findOne(#mydoc{i = 10}, [#mydoc.i, #mydoc.name]).
-WARNING: If you use modifier updates with {set,Value} ($set), do not use records. Mongo changes the document element sequence and this messes up record serialization.
+WARNING: If you use modifier updates with {set,Value} ($set), do not use records if that value is a string that changes size (it should work for integers for instance). Mongo changes the document element sequence and this messes up record serialization.
-Connections are always single:
+Connections are always single to the master:
- master/slave - read and write from master
- master/master - pick a master at random and use it for everything
-- replica pairs - find out which is master and connect to it
+- replica pairs/sets - find out which is master and connect to it
If your usage pattern is read heavy and want to use slaves for reading, connect to them with singleServer call. Don't write to slave connections or bad things will happen.
Always use an atom for naming connections. The connection process will register itself on that name.
View
@@ -3,7 +3,7 @@
handle_cast/2, handle_info/2, terminate/2, code_change/3]).
% API
-export([connect/1, connect/2, is_connected/1,deleteConnection/1, singleServer/2, singleServer/1,
- masterSlave/3,masterMaster/3, replicaPairs/3, datetime_to_now/1,replicas/2]).
+ masterSlave/3,masterMaster/3, replicaPairs/3, datetime_to_now/1,replicaSets/2]).
% Internal
-export([exec_cursor/3, exec_delete/3, exec_cmd/3, exec_insert/3, exec_find/3, exec_update/3, exec_getmore/3,
encoderec/1, encode_findrec/1, encoderec_selector/2, gen_keyname/2, gen_prop_keyname/2, rec/0, recoffset/1, recfields/1,

0 comments on commit 5903920

Please sign in to comment.