datamapper/dm-do-adapter — pull request #16 by jwkoelewijn (2012-12-20 11:31:18+00:00)
Title: added spec

When a Range with in inclusive end was used, the entire Range would be partitioned. This is not necessary, because only the first and the last item of the Range are important.

This could result in poor performance when using big ranges.

The fix just changes the comparison operator based on whether the range is inclusive or exclusive.