Question about hash of skydb

44 views
Skip to first unread message

Yuan Weiran

unread,
Nov 14, 2013, 3:02:29 AM11/14/13
to sk...@googlegroups.com
Hi, I am a new comer to sky. From the guide there says
"Hashes are also referred to as objects in Sky."
Is that means sky makes a hash for each object?

For example, use sky to store events of all people in a supermarket (getting in, picking up goods, wondering, ...),
there will be more than ten thousands of people each day and millions of people each year,
then sky have to store every person as a hash? or store the supermarket as a single hash?

Thanks,
Weiran

Ben Johnson

unread,
Nov 14, 2013, 8:56:21 AM11/14/13
to sk...@googlegroups.com
Weiran-

You can store each individual as a separate object as a new hash in the database. When you go to query it later, Sky will just iterate over the objects and roll up the results.

Currently Sky slows down as you add a lot of events to a single object but I'm adding a fix to allow it to scale logarithmically as you insert more events.

You shouldn't have any issue with millions of objects in the db.


Ben

Reply all
Reply to author
Forward
0 new messages