mihalis's picture

Why I write

As you might have noticed, I write a lot and there are many reasons that I do so:

  • I like the writing process!
  • I enjoy writing, especially when I finish writing about a topic.
  • When I write about something, I learn more things about it.
  • I like helping other people learn new things.
  • Although writing is not an easy task, It feels natural to me after so many years. However, it was not that easy in the beginning.

One more thing that I forgot to mention: from time to time I read my writings!

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."

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()

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

> db.serverStatus().wiredTiger

mihalis's picture

Cannot send tweet



Subscribe to RSS - blog