Monthly Archives: May 2017

Profiling for Slow Query Log in MongoDB

MongoDBIn mongoDB, you can log slow query log as per your convenient for monitoring of your mongoDB either for collections scan or index scan. Most of the time you have built index and your query taking more time as per your expecation , so set profiling level and log slow query. Sometimes, even though you have built index on perticular field but still taking more than the expected time, you can log those query by setting profiler.
Continue reading Profiling for Slow Query Log in MongoDB

Sorting of Array using java.util.Arrays in java

java-logo
Well, There are different ways you can sort your different types of array , i.e. whether int[] , byte[], sort[], String[] or any anoher type of array (custome java object array). In this post, I tried to demonstrate primitive types array sorting by using in-built utility tool i.e. java.util.Arrays class. Or if you have primitive types of array of string, then how can you sort by using java.util.Arrays utility class in java.
Continue reading Sorting of Array using java.util.Arrays in java