Interesting point, Simon. Are you saying that all developers of big
database engines that implemented row-level locks are just idiots
because there's no benefit from it at all? They had to implement just
database-level locks and all users would be a lot happier because
they'd received a significant performance boost?

Pavel

On Mon, Sep 21, 2009 at 1:23 PM, Simon Slavin
<slav...@hearsay.demon.co.uk> wrote:
>
> On 21 Sep 2009, at 5:38pm, Brad House wrote:
>
>> It could probably benefit a large number of integrations to
>> have finer grained locking even if it could not be implemented for all
>> integration types.
>
> It makes the system a great deal slower, since you need to keep
> checking all the levels of lock you have implemented.  For instance,
>
> UPDATE props SET colour='black',condition='poor' WHERE
> description='fake sword'
>
> needs to check for locks on the file, the record, and three fields.
> That's five operations before you can even start to modify the data.
> Could easily double the amount of time it takes to perform the
> update.  And if you implement column locks there are even more.  And
> implementing fine-grain locks leads to lock-contention: if someone
> locks a record and you try to lock a field in that record, what should
> happen ?  Now before trying to modify data and having locks interfere,
> you're trying to modify locks and having lock-interaction interfere.
>
> Simon.
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to