mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	Streamlined how we increase the size of our test table. The new method shows run time decreased by ~60%. This is not a guarantee that we will not see test timeouts (the random failures noted in the bug), but it should significantly reduce the chances of this occurring.
		
			
				
	
	
		
			10 lines
		
	
	
		
			278 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			278 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| DROP TABLE IF EXISTS t1, t2;
 | |
| CREATE TABLE t1 (id INTEGER, grp TINYINT, id_rev INTEGER);
 | |
| SELECT COUNT(*) FROM t1;
 | |
| COUNT(*)
 | |
| 4201000
 | |
| SELECT COUNT(DISTINCT id) FROM t1 GROUP BY grp;
 | |
| # Begin cleanup
 | |
| SET session myisam_sort_buffer_size = @orig_myisam_sort_buffer_size;
 | |
| DROP TABLE t1;
 |