Lambda vs. Anonymous Inner Class

Lot of people think that Lambda in Java 8 is kind of a shorthand for writing the Inner Classes which is not completely true. Lets try to look with the help of examples the differences between Lambda and Anonymous Inner Classes. Anonymous Inner classes can have state in the form of class level instance variables Read More

0 comments

Enabling Parallel Queries in PostgreSQL 9.6

There is a pretty good feature which is introduced in PostgreSQL 9.6 that is parallel query where the planner can leverage multiple CPU in order to answer the queries faster. As of 9.6 parallel queries are disabled by default. There are two ways to enable it. This will have impact on all the queries which Read More

0 comments

Lock Monitoring Query in PostgreSQL 9.6

I used to use the following query which is pretty helpful whenever I wanted to find out the queries which are in 'waiting' state, but after upgrading to PostgreSQL 9.6, I was unable to run that and use to get the error as shown below. [crayon-59740a75e3e6d070751829/] The reason for the error is that 'waiting' column Read More

0 comments

How to run Parallel Query in PostgreSQL 9.6 ?

Parallel queries as the name suggest will provide parallel execution of sequential scans queries including joins, and aggregates. So lets try to understand this feature introduced in PostgreSQL 9.6 in action. [crayon-59740a75e4736905367141/] As you can see above we have not created index. Lets try to analyze an aggregate statement on the order_data table. [crayon-59740a75e4740979301492/] As Read More

0 comments

Response issue time is either too old or with date in the future Exception

While using Spring 4.x and SAML 2.0  I faced the following issue while integrating from the Identity Provider. Caused by: org.opensaml.common.SAMLException: Response issue time is either too old or with date in the future, skew 60, time 2016-02-17T12:20:56.000Z. I dig into the problem and found that it is possible clock of the Identity Provider (System) and Read More

0 comments