Locking in CockroachDB, Part 2 - Finding Locked Rows

This is part 2 of a series on locking in CockroachDB. The first post showed how you can end up with locked rows or tables, and how to keep your locks to the fewest number of rows by using indexes. But even with the best use of indexes, you can still end up with rows that get locked. This can be worsened if you have some other issue, like a statement or transaction that is slow or doesn&rsquo;t…