Forum: Ruby on Rails no need for DB reflection when using config.active_record.sc

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
David L. (Guest)
on 2005-12-23 04:16
(Received via mailing list)
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.
Rick O. (Guest)
on 2005-12-23 04:25
(Received via mailing list)
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
David L. (Guest)
on 2005-12-23 08:41
(Received via mailing list)
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.
This topic is locked and can not be replied to.