Agreed. This is kind of late night hack. I will rethink about this.

For your second question, that can't happen, because you can only call range key related calls, like `indexBetween`, `indexLargerThan`, etc., once for each query. In other words, each query can have conditions on *at most* one range key.