java - Concurrent write to titan DB to improve performance -


what way concurrent write titan db cassandra does. using titan cassandra data storage. overall want write database parallely can improve performance.

i tried java multithread getting lock exception.

this question asked in aurelius graphs mailing list:

https://groups.google.com/d/msg/aureliusgraphs/lbox0wkhulc/j2wqubtrqtqj

other answers welcome here, of course, here summary of answer exchange:

you can use multithreading, multiple jvm processed, etc. write titan in parallel fashion. however, if titan schema uses locks enforce uniqueness, inevitably hit locking exceptions. there 2 ways deal this:

  1. remove locks , manage uniqueness consistency yourself: http://s3.thinkaurelius.com/docs/titan/0.5.4/eventual-consistency.html or
  2. keep locking enabled , add transaction retry code. may consider smaller commits keep locks open least amount of time possible preventing further lock contention.

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -