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


#1

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.


#2

On 12/22/05, David L. removed_email_address@domain.invalid 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


#3

thanks Rick. suspected as much

cheers
D

On 12/23/05, Rick O. removed_email_address@domain.invalid wrote:


Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails


cheers,
David L.