⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aggregateoptimization.out

📁 derby database source code.good for you.
💻 OUT
📖 第 1 页 / 共 5 页
字号:
Statement Text: 	-- equality predicates on all key columns preceding min column, -- a unique indexselect min(c2) from t1 where c1 = 1Parse Time: 0Bind Time: 0Optimize Time: 0Generate Time: 0Compile Time: 0Execute Time: 0Begin Compilation Timestamp : nullEnd Compilation Timestamp : nullBegin Execution Timestamp : nullEnd Execution Timestamp : nullStatement Execution Plan Text: Project-Restrict ResultSet (5):Number of opens = 1Rows seen = 1Rows filtered = 0restriction = falseprojection = true	constructor time (milliseconds) = 0	open time (milliseconds) = 0	next time (milliseconds) = 0	close time (milliseconds) = 0	restriction time (milliseconds) = 0	projection time (milliseconds) = 0Source result set:	Scalar Aggregate ResultSet:	Number of opens = 1	Rows input = 1		constructor time (milliseconds) = 0		open time (milliseconds) = 0		next time (milliseconds) = 0		close time (milliseconds) = 0	Index Key Optimization = true	Source result set:		Project-Restrict ResultSet (4):		Number of opens = 1		Rows seen = 1		Rows filtered = 0		restriction = false		projection = true			constructor time (milliseconds) = 0			open time (milliseconds) = 0			next time (milliseconds) = 0			close time (milliseconds) = 0			restriction time (milliseconds) = 0			projection time (milliseconds) = 0		Source result set:			Index Row to Base Row ResultSet for T1:			Number of opens = 1			Rows seen = 1			Columns accessed from heap = {1}				constructor time (milliseconds) = 0				open time (milliseconds) = 0				next time (milliseconds) = 0				close time (milliseconds) = 0				Index Scan ResultSet for T1 using index I1 at serializable isolation level using share row locking chosen by the optimizer				Number of opens = 1				Rows seen = 1				Rows filtered = 0				Fetch Size = 1					constructor time (milliseconds) = 0					open time (milliseconds) = 0					next time (milliseconds) = 0					close time (milliseconds) = 0					next time in milliseconds/row = 0				scan information: 					Bit set of columns fetched=All					Number of columns fetched=2					Number of deleted rows visited=0					Number of pages visited=1					Number of rows qualified=1					Number of rows visited=1					Scan type=btree					Tree height=1					start position: 	>= on first 1 column(s).	Ordered null semantics on the following columns: 					stop position: 	> on first 1 column(s).	Ordered null semantics on the following columns: 					qualifiers:Noneij> -- group by ordered on grouping columnscreate table t2(c1 int, c2 int, c3 int, c4 int);0 rows inserted/updated/deletedij> create index t2_i1 on t2(c1);0 rows inserted/updated/deletedij> create index t2_i2 on t2(c1, c2);0 rows inserted/updated/deletedij> -- empty tableselect c1, sum(c2) from t2 group by c1;C1         |2          -----------------------ij> values SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS();1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Statement Name: 	nullStatement Text: 	-- empty tableselect c1, sum(c2) from t2 group by c1Parse Time: 0Bind Time: 0Optimize Time: 0Generate Time: 0Compile Time: 0Execute Time: 0Begin Compilation Timestamp : nullEnd Compilation Timestamp : nullBegin Execution Timestamp : nullEnd Execution Timestamp : nullStatement Execution Plan Text: Project-Restrict ResultSet (4):Number of opens = 1Rows seen = 0Rows filtered = 0restriction = falseprojection = true	constructor time (milliseconds) = 0	open time (milliseconds) = 0	next time (milliseconds) = 0	close time (milliseconds) = 0	restriction time (milliseconds) = 0	projection time (milliseconds) = 0Source result set:	Grouped Aggregate ResultSet:	Number of opens = 1	Rows input = 0	Has distinct aggregate = false	In sorted order = true		constructor time (milliseconds) = 0		open time (milliseconds) = 0		next time (milliseconds) = 0		close time (milliseconds) = 0	Source result set:		Project-Restrict ResultSet (3):		Number of opens = 1		Rows seen = 0		Rows filtered = 0		restriction = false		projection = true			constructor time (milliseconds) = 0			open time (milliseconds) = 0			next time (milliseconds) = 0			close time (milliseconds) = 0			restriction time (milliseconds) = 0			projection time (milliseconds) = 0		Source result set:			Index Scan ResultSet for T2 using index T2_I2 at serializable isolation level using share table locking chosen by the optimizer			Number of opens = 1			Rows seen = 0			Rows filtered = 0			Fetch Size = 1				constructor time (milliseconds) = 0				open time (milliseconds) = 0				next time (milliseconds) = 0				close time (milliseconds) = 0			scan information: 				Bit set of columns fetched={0, 1}				Number of columns fetched=2				Number of deleted rows visited=0				Number of pages visited=1				Number of rows qualified=0				Number of rows visited=0				Scan type=btree				Tree height=1				start position: 	None				stop position: 	None				qualifiers:Noneij> -- 1 row tableinsert into t2 values (1, 1, 1, 1);1 row inserted/updated/deletedij> select c1, sum(c2) from t2 group by c1;C1         |2          -----------------------1          |1          ij> values SYSCS_UTIL.SYSCS_GET_RUNTIMESTATISTICS();1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Statement Name: 	nullStatement Text: 	select c1, sum(c2) from t2 group by c1Parse Time: 0Bind Time: 0Optimize Time: 0Generate Time: 0Compile Time: 0Execute Time: 0Begin Compilation Timestamp : nullEnd Compilation Timestamp : nullBegin Execution Timestamp : nullEnd Execution Timestamp : nullStatement Execution Plan Text: Project-Restrict ResultSet (4):Number of opens = 1Rows seen = 1Rows filtered = 0restriction = falseprojection = true	constructor time (milliseconds) = 0	open time (milliseconds) = 0	next time (milliseconds) = 0	close time (milliseconds) = 0	restriction time (milliseconds) = 0	projection time (milliseconds) = 0Source result set:	Grouped Aggregate ResultSet:	Number of opens = 1	Rows input = 1	Has distinct aggregate = false	In sorted order = true		constructor time (milliseconds) = 0		open time (milliseconds) = 0		next time (milliseconds) = 0		close time (milliseconds) = 0	Source result set:		Project-Restrict ResultSet (3):		Number of opens = 1		Rows seen = 1		Rows filtered = 0		restriction = false		projection = true			constructor time (milliseconds) = 0			open time (milliseconds) = 0			next time (milliseconds) = 0			close time (milliseconds) = 0			restriction time (milliseconds) = 0			projection time (milliseconds) = 0		Source result set:			Index Scan ResultSet for T2 using index T2_I2 at serializable isolation level using share table locking chosen by the optimizer			Number of opens = 1			Rows seen = 1			Rows filtered = 0			Fetch Size = 1				constructor time (milliseconds) = 0				open time (milliseconds) = 0				next time (milliseconds) = 0				close time (milliseconds) = 0				next time in milliseconds/row = 0			scan information: 				Bit set of columns fetched={0, 1}				Number of columns fetched=2

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -