Am 28/06/12 01:41, Christian Aistleitner schrieb:
> Hi Daniel,
> 
> On Wed, Jun 27, 2012 at 09:59:19PM +0200, Daniel Kinzler wrote:
>> * MediaWikiTestCase will notice this group and use temporary tables instead 
>> of
>> the wiki database's actual tables. The temporary tables are re-created for 
>> every
>> test. This protected the wiki from modifications through test cases, and
>> isolates test. So far, so good.
> 
> The picture you're painting here is a bit too pessimistic ...
> ... performance-wise.

Daniel, which db backend are you using for your tests?
It can matter where the data resides. Even for temporary tables, you can
end up paying the fsync() penalty of storing the data into disk (when
you really don't care).


> Maybe attacking those parser tests directly will solve the
> database-caused performance problem for you without going through the
> trouble of adding read-only Database tests?

You can just run the parser tests with parserTests.php, which doesn't
recreate tables and is much faster.
(you'll need to apply https://gerrit.wikimedia.org/r/#/c/4111/ under mysql)



_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to