Live data from Hacker News

Viewing profile — mathias_10gen

mathias_10gen

HN member
Joined
Thu, Mar 25, 2010, 8:08 PM UTC
HN karma
132
Public activity
67 items

About mathias_10gen

No profile information was provided.

Recent public activity

  1. comment
    Comment #6641731

    Actually in C++11 you can just say: auto id = mongo::OID("1234..."); This gives you much (not all) of the brevity and flexibility of dynamic typing, while maintaining the power and…

  2. comment
    Comment #5570583

    Actually, as of 2.4 there is an experimental text search feature built-in: http://docs.mongodb.org/manual/core/text-search/ . While it is no Lucene (and is still considered experim…

  3. comment
    Comment #4845984

    One case that could break by this change is if you relied on insert's old default of being a no-op if an object with the same _id already exists. This can be used to efficiently in…

  4. comment
    Comment #4449060

    Out of curiosity, did you have an index on the ts field that you are matching with? By the way, if you (or anyone else for that matter) come up with useful benchmarks I'd love to g…

  5. comment
    Comment #4039582

    There is an official tutorial on http://mongodb.org , just click "Try It Out" in the top banner. Karl Seguin also wrote two great tutorials (one on basics, one on geo queries) at h…

  6. comment
    Comment #3983605

    Locking in particular has improved substantially since 1.6. For example, 2.0 introduced yielding in some cases where MongoDB would go to disk rather than page-faulting with the loc…

  7. comment
    Comment #3631705

    Thanks for bringing this to our attention. It has just been fixed in master.

  8. comment
    Comment #3530547

    Take a look at the $push and $addToSet[1] update operators in mongodb. They are both for atomically adding one or more elements to an array in an object. On the other hand, MongoDB…

  9. comment
    Comment #3473340

    I don't know exactly what your GIS needs are, but it might be worth seeing if MongoDB's geospatial indexing meets them if you are interested in querying free-form data. http://www.…

  10. comment
    Comment #3206461

    We try to keep documentation on EC2 best practices here: http://www.mongodb.org/display/DOCS/Amazon+EC2

  11. comment
    Comment #3197241

    True, but since the current version of SM that we use (1.7) isn't thread-safe all calls to it need to be inside of a mutex to prevent trashing global state. It is possible that wit…

  12. comment
    Comment #3179167

    Writing to the journal is actually done outside of the write lock most of the time. It does hold a readlock, however as of 2.0 most commits will release the lock before doing any d…

  13. comment
    Comment #3151952

    2.0 has a new index format that should reduce your index sizes by ~20-30% to fit more in RAM. If you haven't looked at upgrading yet, it is probably worth testing with 2.0.1 to see…

  14. comment
    Comment #3151944

    FYI, as of 1.8 MongoDB now has a WAL implementation optionally enabled by starting with --journal. We made it the default in 2.0 for 64-bit platforms.

  15. comment
    Comment #3112885

    The global write lock, while important, is probably the most over-written-about and misunderstood issue. The writelock is only held while the db is actually in the middle of an wri…

  16. comment
    Comment #3112523

    Even worse is that modern x86 (and probably other) CPUs also have instructions for 16-byte vector registers that can be used to copy or compare data much faster than 1 byte per cyc…

  17. comment
    Comment #3098969

    Surprisingly good although not complete: http://gcc.gnu.org/projects/cxx0x.html Unfortunately a lot of companies don't use today's compilers, but use many-year old versions. For ex…

  18. comment
    Comment #3098675

    I think Effective C++ by Scott Meyers[1] is the gold standard when it comes to books on writing good clean C++. It assumes that you already know the basic syntax though and already…

  19. comment
    Comment #3098652

    Actually since most if not all CPUs have an atomic increment instruction it is quite easy to make shared_ptr thread-safe. In fact, that is what boost::shared_ptr does. This makes i…

  20. comment
    Comment #3014759

    That line was referring to restarting just the mongod process on a running machine (eg, when upgrading or changing config flags). In that case, the data should still be in the OS f…

  21. comment
    Comment #2989598

    It was probably either http://try.mongodb.org or http://mongly.com/

  22. comment
    Comment #2988210

    Its actually possible to be fully consistent if you include the "tension" documents when fetching the main docs. For example, in the canonical transaction example of Alice giving B…

  23. comment
    Comment #2971064

    I don't want to turn this into a MongoDB vs Riak thread, but you may want to take another look at Mongo as the points you've mentioned are now handled. As of 1.6 we support automat…

  24. comment
    Comment #2937551

    The defualt mapping of Y is arguably broken since it doesn't follow the normal vi conventions. I have these lines in my .vimrc to "fix" it: "make shift Y behave like shift-[cd] (co…

  25. comment
    Comment #2937534

    ci( is another nifty trick that will do the same but will work anywhere between the two ('s not just at the beginning of globalConfig. See ":help text-objects" for more details on …