Articles

This section contains all the MongoDB articles written in addition to the Book and course available. Each article is the result of specific learnings around a MongoDB topic or a inspection of a specific issue a user or customer has run into and where there was a general learning possibility to be had.

List of Articles

  • Bit Packing or How to Love AND, OR or XOR https://www.maxpixel.net/Ones-Binary-Numbers-Zeroes-Random-Digital-1-0-1254485 Bit Packing or How to Love AND, OR or XOR Summary In this article we are going to explore the use of bit packing. It allows us to compress multiple values into a integer or binary field in MongoDB potentially allowing us to save on document size in storage and transmission over the wire. It has some real benefits but comes with trade offs that you should be clearly aware off before applying it.
  • Transactions vs Two-Phase commit MongoDB Transactions vs Two-Phase commit In this article we are going to investigate the difference in performance between using MongoDB Transactions or a Two-phase commit for a simple bank account transfer. The benchmarks were run on a local desktop and over a limited set of accounts to ensure we can get intermittent write conflicts. The Code We are going to try to transfer an amount of money between two accounts and rollback if it fails.