-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

On 11.12.2008, at 12:47, Max Williams wrote:

Hi - i'm doing some DB optimisations on our site, mainly by watching the
log files (in dev mode) and seeing what db access is going on.  I'm
seeing a lot of massive outputs like below - this is for one of my
ferret-indexed classes, but i have 5, and they all seem to output all
this stuff on every page that loads something from one of those tables
(just loading, not even updating).

I'm just wondering -
a) is this normal?

yes, in development mode it is. You shouldn't see this in production.

b) Is it really reconfiguring all my ferret indexes every time i load a
page?

yep. I think the biggest problem is the noisy output in this case, which really makes log files hard to read. You can easily comment out the debug statement responsible for this, it's around line 94 in act_methods.rb.

c) is it necessary?

It's a side effect of Rails reloading class definitions on each request in dev mode, maybe there would be a way for aaf to work around this. However I think this would lead to unexpected behaviour i.e. if you modified some aaf option in dev mode and the change would only be picked up by restarting the server.

d) is it harming my site's performance?

If you're running in production mode this will happen only once at application startup, so the answer is no.


Cheers,
Jens


- --
Jens Krämer
Finkenlust 14, 06449 Aschersleben, Germany
VAT Id DE251962952
http://www.jkraemer.net/ - Blog
http://www.omdb.org/     - The new free film database

GPG public key: http://www.jkraemer.net/static/keys/jk_jkraemer.net.key.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAklBCCsACgkQgpXMPm7s2942UQCfeVWnVE9Ae8WV52akrwjCKo7H
7cUAn3urNNNdxVDvO79NXuyU+vgoDUCD
=XfXl
-----END PGP SIGNATURE-----
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to