~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/derived.test

  • Committer: Stewart Smith
  • Date: 2009-03-11 03:21:08 UTC
  • mto: (910.4.19 sparc) (937.2.1 sparc)
  • mto: This revision was merged to the branch mainline in revision 931.
  • Revision ID: stewart@flamingspork.com-20090311032108-2qn3uydzr01v0xtv
dramatically speed up derived test.

Wrap 10,000 row load in transaction.

Shaves 2 seconds off test for libeatmydata runs.
Shaves about 335 seconds off test for normal runs (non-libeatmydata. i.e. fsync is real)

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
drop table t1, t2;
45
45
create table t1(a int not null, t char(8), index(a));
46
46
disable_query_log;
 
47
begin;
47
48
let $1 = 10000;
48
49
while ($1)
49
50
 {
50
51
  eval insert into t1 values ($1,'$1'); 
51
52
  dec $1;
52
53
 }
 
54
commit;
53
55
enable_query_log;
54
56
SELECT * FROM (SELECT * FROM t1) as b ORDER BY a  ASC LIMIT 0,20;
55
57
--replace_column 9 X