I suggest to generate the timestamp when you save the document, not when you
index it.
-Filippo
On Jan 8, 2014, at 3:17 PM, Hank Knight wrote:
> I use this Map Function to get the current Unix timestamp:
>
> function(doc) {emit(Math.round(new Date().getTime()/1000), null );}
>
> The odd thing is, it returns a correct timestamp the first time I run
> a query but it returns the exact same timestamp one minute later even
> though 60 seconds have passed! Is this due to caching or something
> else? What is the best way for me to always get the current Unix
> timestamp?