Do `startKey` and `endKey` need to exist?


#1

I can’t seem to find this in the documentation but when using startKey and endKey do they have to exist?

Here’s the scenario. The view I’m using returns timestamps and I only want those within a particular range but the exact timestamps for start and end may not be in the dataset. Even if I make the timestamp more granular, it’s not guaranteed to be there. And in some/many situations the range will be empty.

Thanks.


#2

Well, I tried this and it seems to work. No exceptions and the results are as expected, I think.


#3

No, they do not need to exist. These are ranges which provide upper and lower bounds.