blog

mihalis's picture

2017 Resolutions

.
.
.
.

  • Read more books.
  • Take more risks.
  • Study CS related research subjects.
  • Write a book!
  • Spend less time on the Internet.
  • Take more photographs.
  • Print more photographs.
  • Run faster!
mihalis's picture

The Baby Elephant Syndrome

"When an elephant living in captivity is still a baby, it is tied to a tree with a strong rope or a chain every night. Because it is the nature of elephants to roam free, the baby elephant instinctively tries with all its might to break the rope. But it isn’t yet strong enough to do so. Realizing its efforts are of no use, it finally gives up and stops struggling. The baby elephant tries and fails many times, it will never try again for the rest of its life.
Later, when the elephant is fully grown, it can be tied to a small tree with a thin rope. It could then easily free itself by uprooting the tree or breaking the rope. But because its mind has been conditioned by its prior experiences, it doesn’t make the slightest attempt to break free. The powerfully gigantic elephant has limited its present abilities by the limitations of the past—-hence, the Baby Elephant Syndrome."

Tags: 
mihalis's picture

MongoDB: WiredTiger or MMAPv1?

Although it is easy to find out whether you are using WiredTiger or MMAPv1 by the filenames in the data directory, there is a better way to discover the Storage Engine your MongoDB database is using.
The next command returns the Storage Engine a MongoDB server is using:

> db.serverStatus().storageEngine
{ "name" : "mmapv1", "supportsCommittedReads" : false }

If you are using WiredTiger, the output would have been similar to the following:

> db.serverStatus().storageEngine
{ "name" : "wiredTiger", "supportsCommittedReads" : true }
> db.serverStatus().storageEngine.name
wiredTiger

If you are using WiredTiger, the following command will give you even more information:

> db.serverStatus().wiredTiger

mihalis's picture

Cannot send tweet

Image: 
Tags: 
mihalis's picture

Something is technically wrong.

I just love the error messages of Twitter :)

Image: 
Tags: 

Pages

Subscribe to RSS - blog