ETS is not smart enough to utilize guards like Timestamp > Time1 to limit the search space. It will only utilize fully bound keys and partially bound keys in the head of the match spec as described at the bottom of this section: https://www.erlang.org/doc/man/ets.html#table-traversal