You can create a secondary index 
(https://wiki.basho.com/Secondary-Indexes.html) on the timestamp and perform a 
secondary index query to pull back a range of data that matches what you are 
looking for. 

As far as the node.js portions, I have just as much of an idea as you. Perhaps 
someone else on this list can point you in the appropriate directino.
---
Jeremiah Peschka - Managing Director, Brent Ozar PLF, LLC
Microsoft SQL Server MVP

On Feb 28, 2012, at 7:57 AM, Norman Khine wrote:

> Hello,
> Not sure if this is the right forum to post this, but i am hoping you can 
> help.
> I have a livestats nodejs tracking site, code for it is here:
> 
> https://github.com/nkhine/livestats
> 
> which is based on the peepcode screencast, with some updates.
> 
> i am planning to extend the
> https://github.com/nkhine/livestats/blob/master/lib/livestats.js to
> include the riak-js library so as to store the data, something like:
> 
> var db = require('riak-js').getClient({host: "riak.myhost", port: "8098" });
> db.save('user', 'lat', 'lon', 'city', 'timestamp'});
> 
> but, i was wondering how to implement a page refresh and for the map
> to load all entries within a set period of elapsed time. and place the
> entries within the map.
> 
> any pointers much appreciated.
> 
> norman
> 
> -- 
> %>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or
> chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )
> 
> _______________________________________________
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to