PostgreSQL as a secret weapon for high-performance ... - PGCon
PostgreSQL as a secret weapon for high-performance ... - PGCon
PostgreSQL as a secret weapon for high-performance ... - PGCon
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Rails <strong>as</strong> ORM > Query Tests<br />
Query tests to make sure we don't fall into the<br />
multiplying queries trap<br />
def test_queries<br />
queries = track_queries do<br />
get :index<br />
end<br />
<strong>as</strong>sert_equal queries, [<br />
"T<strong>as</strong>k Load",<br />
"Tag Load",<br />
"Event Create",<br />
"SQL"<br />
]<br />
end<br />
Gleb Arshinov & Alex Dymo ● <strong>PostgreSQL</strong> <strong>as</strong> a <strong>secret</strong> <strong>weapon</strong> <strong>for</strong> <strong>high</strong>-per<strong>for</strong>mance Ruby on Rails applications ● <strong>PGCon</strong> 2010 16 / 58