Some interesting criticisms of rails

E

Edward Faulkner

--1UWUbFP1cBYEclgG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

does Rails really not have application level transactions? By
application level transactions I understand that to mean that if the
application pulls a bunch of objects in from the database, modifies
some of them, then Rails can guarantee that all of the changed
objects have been written successfully or not at all to the db. If
Rails cannot do this, then there is a class of applications that
Rails cannot support. I find this difficult to believe.

Rails can certainly do simple transactions. You just pass a block to
the 'transaction' method and all database writes within it will be
within a single transaction.

What may be more difficult is maintaining a single transaction across
multiple http requests. I think you'd need to store the modified
objects within the session until you were ready to do one big commit
to the database.

--1UWUbFP1cBYEclgG
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDL4k3nhUz11p9MSARAolYAKDapIxt7JuoGbGpCKbY3a0aFFUaFQCdFBHV
frZE64O3V4CBx7dXVUrYv30=
=0cfY
-----END PGP SIGNATURE-----

--1UWUbFP1cBYEclgG--
 
G

Gavin Kistner

--Apple-Mail-1-705373334
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed

As I said, I don't know Rails that well (cursory understanding, at
best really) -- does Rails really not have application level
transactions? By application level transactions I understand that
to mean that if the application pulls a bunch of objects in from
the database, modifies some of them, then Rails can guarantee that
all of the changed objects have been written successfully or not at
all to the db. If Rails cannot do this, then there is a class of
applications that Rails cannot support. I find this difficult to
believe.

To be a little rude (but with a helpful intent), you don't have to
know any rails to be able to type "rails transactions" into Google
and look at the first 1-5 hits to decide that it does in fact have
transactions, and not just on a per-table basis.


--Apple-Mail-1-705373334--
 
D

Devin Mullins

Edward said:
What may be more difficult is maintaining a single transaction across
multiple http requests. I think you'd need to store the modified
objects within the session until you were ready to do one big commit
to the database.
Maybe somebody who is a guru at using continuations can try their hand
at that.

Devin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,183
Messages
2,570,968
Members
47,517
Latest member
TashaLzw39

Latest Threads

Top