Commit 2d99304b authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Force use of index by using the maximum feature length.

parent 3bb43631
......@@ -947,12 +947,16 @@ sub __constraint {
%1$s.seq_region_id = %2$10d
AND %1$s.seq_region_start <= %4$10d
AND %1$s.seq_region_end >= %3$10d
AND %1$s.seq_region_start >= %5$10d
);
$constraint =
sprintf( $constraint_fmt,
$table_alias, $slice->get_seq_region_id(),
$slice->start(), $slice->end() );
$table_alias,
$slice->get_seq_region_id(),
$slice->start(),
$slice->end(),
$slice->start() - $max_feature_length );
} else {
my @seq_region_ids =
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment