For Eg : Think we are getting three json chucks of some post with increase in comment count and new text.while first json chuck content will get a succeeded insert , while second and third json chucks share the same post id with the different comment count for update which are sent to db at same time by using parallelism of storm (Two different update queries are trying to perform at same time ).which is causing dead lock, I can see two transactions holding same id in db for update.
I just wrote a insert query and below that I have written a update query in single bolt on increasing parallelism to that bolt,I can see more dead locks on db table. Writing the a different update bolt will solve by problem of dead locks ? *Best regards,* *K.Sai Dilip Reddy.*