[Rails] Re: Re: Database Concurrency Without a Web Server?

Isak Hansen
Fri, 14 Jul 2006 14:18:38 -0000

On 7/14/06, Don Stocks <amillionhitpoints@yahoo.com>
wrote:
> >
> > Conclusion: concurrency bad ;)
> >
> >
> > Isak
>
> How about update performance.  I''m not inserting any rows in my
> application.  Only updating existing rows.
>

OK, as I already have the project here.


Updating 2k rows:


Load row, alter a value, save it.
     ar_basic: 20.86

Same as above, but grouped in transactions of 100 rows.
     ar_trans: 14.891

Load row just for the sake of it, then update using
connection.execute(). 100 rows/transaction.
   noar_trans: 7.109

10 threads updating 200 rows each.
ar_concurrent: 30.703


Isak