No need for DB reflection when using config.active_record.sc

Hi.

I’ve not seen anything on this so thought I’d put forward the idea and
see if it has any merit, or is already in practice.

When using migrations with config.active_record.schema_format = :ruby
(ruby as the canonical DB definition) it seems there would be no need
to query the database itself to determine its structure; it would
already be known.

This might have some good implications for database performance,
reducing the number of queries which need to be executed. Has this
been considered, or is it worth consideration?


cheers,
David L.

On 12/22/05, David L. [email protected] wrote:

This might have some good implications for database performance,
reducing the number of queries which need to be executed. Has this
been considered, or is it worth consideration?

It’s not really worth it because in production mode it’s only queried
once anyway.


rick
http://techno-weenie.net

thanks Rick. suspected as much

cheers
D

On 12/23/05, Rick O. [email protected] wrote:


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


cheers,
David L.