What does it mean that HBase and Google's Bigtable both support single-row transactions but not multi-row? Currently I am using HBase on top of my local file system; how can I see this practically?
Asked
Active
Viewed 1,768 times
1 Answers
4
You have a row that looks like this:
username: fabspro password: 1234 account_active: 1 last_login: 2012-10-10 last_login_ip: 135.23.15.3
for example. Then when the user logs in, you need to up date last_login and last_login_ip. If you update both fields in a single put operation, then both fields will update at the same time. If one field cannot be updated for some reason, or if the update fails midway, then neither value will be written. This means that no matter what, if you read that row, you can expect that last_login and last_login_ip are consistent with each other.

fabspro
- 1,639
- 19
- 29
-
No worries @Rohit, I hope you have fun learning about HBase and BigTable :) – fabspro Feb 16 '13 at 07:09
-
An Extension to this question....[Click here](http://stackoverflow.com/q/14907762/1508693)...Can you check this @fabspro – Rohit Feb 16 '13 at 07:20
-
@Rohit, I have answered it for you. – fabspro Feb 16 '13 at 07:25