I agree with what Ted said. In this case, you could use HepPlanner to tidy up the tree - combining filters - before you go into the VolcanoPlanner phase.

Real-world planners use tricks such as multi-phase optimization, because otherwise there are combinatorial traps.

NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB