Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
ANN assert_efficient_sql
Phlip
1/14/2008 3:06:00 PM
To ensure your test cases call efficient MySQL...
def test_my_case
assert_efficient_sql do
# just wrap them in this block!
end
end
The assertion intercepts and copies out your MySQL SELECT statements, then
calls EXPLAIN on each one, and inspects the results for common problems.
The goal is test cases that resist database pessimization, even as you change
your data relations, to add new features. If you run your tests after
every few changes, you can easily detect which change broke your database's
indices and relations.
Blog:
http://www.oreillynet.com/ruby/blog/2008/01/assert_efficien...
RDocs:
http://efficient-sql.ruby...
A critique:
http://enfranchisedmind.com/blog/2008/01/14/assert_effi...
--
Phlip
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
ANN assert_efficient_sql
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password