deanhiller / playorm

ORM for nosql with SCALABLE SQL
https://github.com/deanhiller/playorm/wiki
Other
76 stars 18 forks source link

RFE: support for row locking #90

Open snazy opened 11 years ago

snazy commented 11 years ago

Nice to have: exclusive locks for rows - as described in astyanax's "distributed row lock"

deanhiller commented 11 years ago

cassandra 2.0 has this built in and we will expose it for cassandra 2.0 if that is alright???? what's your timeframe?

Also, we will circle back and support it for hbase which already has it built in. cassandra is catching up to hbase with this feature.

snazy commented 11 years ago

Cassandra 2.0 will be fine - it was just an idea for playORM

hsn10 commented 11 years ago

can't you expose astyanax locking until cassandra 2.0 will arrive?

deanhiller commented 11 years ago

it is a very large effort since a webserver farm would have multiple instances and would require something like zookeeper. we would gladly accept pull requests but we are backlogged on features as it is right now :(.

hsn10 commented 11 years ago

you do not need zookeeper. in astyanax documentation and core you can see how to do it. Its sequence of write random lock cookie, read back cookie, if same as written cookie, then record is locked. See sources for ColumnPrefixDistributedRowLock

deanhiller commented 11 years ago

ah, sounds pretty cool.