On 4/10/07, Jeffrey Horn <[EMAIL PROTECTED]> wrote:
> I'd like to actually get an exclusive lock on the record at load
> time.  I'd usually do a "SELECT ... FOR UPDATE" to do this in MySQL.  Can I
> get that behavior using just the load method above?

No, but "select for update" is on my to-do list for future RDBO
features.  It'll probably look roughly like this:

    $o->load(for_update => 1);

> I'm basically looking for a way to control the concurrency from within the
> load method.

If you db supports it, you could try going into a serialized isolation
mode and then doing all your operations in a single transaction.

-John

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to