389 reputation
110
bio website mongodb.org
location Sydney, Australia
age 32
visits member for 2 years, 2 months
seen 20 hours ago

Software generalist and aspiring writer with an unhealthy addiction to technology, lego, programmable toys, scripting languages, open source, and problem solving.

I work for MongoDB, Inc.

Disclaimer: opinions and technical advice given here are my own and do not represent an official statement by my employer.


1d
comment 1 million strings and exact match search
You're correct that duplicate key exceptions don't apply to upserts. My comment was that in general it doesn't seem sensible to recommend unacknowledged writes if you care about the data (in this case, maybe the OP does not). With regards to capped collections, your answer could be clearer that they aren't fit for the use case (FIFO vs the comments on scaling/sharding which seem a misdirection). I mentioned bulk inserts as an alternative to speeding up insertions (assuming that's the only reason you want unacknowledged writes). It seems implicit that bulk inserts are for multiple docs :).
1d
comment 1 million strings and exact match search
Capped collections also aren't relevant for sharding as they are a fixed-size FIFO collection optimised for fast writes and sequential reads. You can't delete documents from a capped collection, and the documents are maintained in insertion order. If you need to scale writes beyond a single server, you should use a normal sharded collection.
1d
comment 1 million strings and exact match search
I wouldn't presume that storing a million strings requires sharding; you should be able to comfortably wrangle that on a modern laptop :). I would also not recommend unacknowledged write concerns if you care about the data. A difference between default (acknowledged) writes and unacknowledged is that unack'd writes ignore insertion errors (for example, duplicate key exceptions). A more appropriate approach for speeding up insertion would be to use Bulk Inserts.
2d
answered Updating Document in MongoDB without Alphabetically order
Aug
18
revised Should I use SQL Azure to store product descriptions and links to images in Azure Blob
[nosql] is a more relevant tag than [mongodb]
Aug
18
awarded  Editor
Aug
18
revised Data Migration or Sharded Cluster to new Cluster
Originally interpreted the question as migrating to different sharded cluster; added note on migrating to new hardware.
Aug
18
answered Data Migration or Sharded Cluster to new Cluster
Aug
18
comment MongoDB communication issues on Azure
Unless you have modified the error messages, it appears as though you may have configured the hostname in MMS as a regex: mdb-0[1-4].domain.com. The MMS agent needs an actual hostname in order to connect to the replica set and discover the configuration (i.e. you should use mdb-01.domain.com or a valid DNS name from the point of view of the machine running the MMS agent).
Aug
18
suggested suggested edit on Should I use SQL Azure to store product descriptions and links to images in Azure Blob
Aug
18
awarded  Informed
Aug
18
awarded  Citizen Patrol
Aug
18
comment MongoDB: store image on db or file system?
This was also asked on StackOverflow: stackoverflow.com/questions/25253509/….
Aug
18
answered Disable MongoDB journaling?
Aug
18
comment Add a member in mongo db replica set
Seems to be duplicated by your question a few days later: mongodb replicaset.
Aug
18
answered MongoDB syncingTo change
Aug
18
answered What is the easiest way to start a mongodb copy server?
Aug
18
answered How to confirm that chunk transfer is completed on a DB
Aug
16
revised mongodb wiki description
Merge description/FAQ from StackOverflow which has more current links
Aug
16
awarded  Tag Editor