DERBY-2130 - Optimizer performance slowdown from 10.1 to 10.2

Patch contributed by Army Brown



git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1534465 13f79535-47bb-0310-9956-ffa450edef68