YDN-DB - Incorrect results using mixed data types with SortedMerge

前端 未结 2 1107
闹比i
闹比i 2020-12-07 05:30

I\'m using the excellent YDN-DB as part of a complicated \'dashboard\' web page that allows a user to download a large amount of information and then search & filter the

2条回答
  •  不思量自难忘°
    2020-12-07 06:26

    Instead of storing a Date object, store the timestamp representation instead:

    var timestamp = new Date().getTime();
    

    Since a timestamp is an integer, you can then effectively use a key range on it.

提交回复
热议问题