Hi Shrijeet What's your usecase? That should drive your decision. Put will overwrite in case your userid and ip address is same. Increment would just bump up the counter.
-abhishek -----Original Message----- From: Shrijeet Paliwal [mailto:[email protected]] Sent: Tuesday, September 25, 2012 9:35 AM To: [email protected] Subject: [Schema] Put or Increment ? Hi, Suppose I am tracking user activity by storing his IP each time he hits the web service. The row id will be uid of user and column qualifiers will be IPs themselves. I am contemplating whether to use a Put or Increment API. The must have requirement is distinct IPs associated with the user. It will be good to have count of visits per IP, but not having the count is OK too (if its expensive). Please help me compare the performance of increment vs put in this context. Will I see better throughput using one over other? Better space utilization? What else? -Shrijeet
