One thing I really need to educate myself on is DB clusters. I’d
love
a bunch of boxes sharing the DB load, and I know that this is a hard
problem.
Most database clusters have 1 master (perhaps with failover) and N
slaves. Write to master; read from any slave. Therefore, what’d
really help Active Record in this scenario is separate connection
pools of readers and writers.
A hackish way to emulate this now is to use a before_filter to
establish the database connection appropriate for the controller/action.
That said, I know enough to know that two phased commits are a large
part of that difficulty, and that PostgreSQL has them in 8.1…
Two-phased commits are necessary for transactions spanning multiple
databases. Most folks can safely ignore this scenario.
Best,
jeremy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)