[erlang-questions] Some mnesia oddity

Ben Hood 0x6e6562@REDACTED
Wed Oct 8 08:41:45 CEST 2008


Dan,

On Wed, Oct 8, 2008 at 7:07 AM, Dan Gudmundsson <dgud@REDACTED> wrote:
> Hey, tought about this when I walked here to work.
>
> You do take a write table lock before your loop, right.
> Because otherwise you loose a lot of roundtrip time, which
> wasn't in the delete_object it only gets a lock on the {Tab,Key}
> record.

Are you suggesting that I get a lock on the whole table before I start
iterating through it instead of just getting a record lock for each
object on every iteration?

If so, I'll give that a go and see what difference it makes.

Thx,

Ben



More information about the erlang-questions mailing list